Commit c176d005 authored by Marco Martin's avatar Marco Martin
Browse files

Remove initialization where bitfields are used

bitfields with initialization are c++20 only and don't work with
commonly used gcc versions yet
parent 5fb9cc43
Pipeline #122872 passed with stage
in 7 minutes and 28 seconds
......@@ -27,6 +27,19 @@
LookAndFeelManager::LookAndFeelManager(QObject *parent)
: QObject(parent)
, m_data(new LookAndFeelData(this))
, m_applyColors(true)
, m_applyWidgetStyle(true)
, m_applyIcons(true)
, m_applyPlasmaTheme(true)
, m_applyCursors(true)
, m_applyWindowSwitcher(true)
, m_applyDesktopSwitcher(true)
, m_applyWindowPlacement(true)
, m_applyShellPackage(true)
, m_resetDefaultLayout(false)
, m_applyLatteLayout(false)
, m_applyWindowDecoration(true)
, m_plasmashellChanged(false)
{
m_applyLatteLayout = (KService::serviceByDesktopName("org.kde.latte-dock") != nullptr);
}
......
......@@ -93,20 +93,20 @@ private:
QStringList m_cursorSearchPaths;
LookAndFeelData *const m_data;
Mode m_mode = Mode::Apply;
bool m_applyColors : 1 = true;
bool m_applyWidgetStyle : 1 = true;
bool m_applyIcons : 1 = true;
bool m_applyPlasmaTheme : 1 = true;
bool m_applyCursors : 1 = true;
bool m_applyWindowSwitcher : 1 = true;
bool m_applyDesktopSwitcher : 1 = true;
bool m_applyWindowPlacement : 1 = true;
bool m_applyShellPackage : 1 = true;
bool m_resetDefaultLayout : 1 = false;
bool m_applyLatteLayout : 1 = false;
bool m_applyWindowDecoration : 1 = true;
bool m_plasmashellChanged = false;
bool m_applyColors : 1;
bool m_applyWidgetStyle : 1;
bool m_applyIcons : 1;
bool m_applyPlasmaTheme : 1;
bool m_applyCursors : 1;
bool m_applyWindowSwitcher : 1;
bool m_applyDesktopSwitcher : 1;
bool m_applyWindowPlacement : 1;
bool m_applyShellPackage : 1;
bool m_resetDefaultLayout : 1;
bool m_applyLatteLayout : 1;
bool m_applyWindowDecoration : 1;
bool m_plasmashellChanged : 1;
};
#endif // LOOKANDFEELMANAGER_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment