Remove initialization where bitfields are used

bitfields with initialization are c++20 only and don't work with
commonly used gcc versions yet
wilder-5.25
Marco Martin 4 years ago
parent 5fb9cc4316
commit c176d00555
  1. 13
      kcms/lookandfeel/lookandfeelmanager.cpp
  2. 28
      kcms/lookandfeel/lookandfeelmanager.h

@ -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

Loading…
Cancel
Save