From c176d005552d541fc2750a4cc89efc4196c25dee Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 13 Jan 2022 16:13:22 +0000 Subject: [PATCH] Remove initialization where bitfields are used bitfields with initialization are c++20 only and don't work with commonly used gcc versions yet --- kcms/lookandfeel/lookandfeelmanager.cpp | 13 ++++++++++++ kcms/lookandfeel/lookandfeelmanager.h | 28 ++++++++++++------------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/kcms/lookandfeel/lookandfeelmanager.cpp b/kcms/lookandfeel/lookandfeelmanager.cpp index d7a65cc2d..e91013fe5 100644 --- a/kcms/lookandfeel/lookandfeelmanager.cpp +++ b/kcms/lookandfeel/lookandfeelmanager.cpp @@ -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); } diff --git a/kcms/lookandfeel/lookandfeelmanager.h b/kcms/lookandfeel/lookandfeelmanager.h index 2d0abe903..17ae29cda 100644 --- a/kcms/lookandfeel/lookandfeelmanager.h +++ b/kcms/lookandfeel/lookandfeelmanager.h @@ -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