mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Make class variable const
This commit is contained in:
@@ -76,6 +76,9 @@ void UIThemeManager::initInstance()
|
||||
|
||||
UIThemeManager::UIThemeManager()
|
||||
: m_useCustomTheme(Preferences::instance()->useCustomUITheme())
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
|
||||
, m_useSystemTheme(Preferences::instance()->useSystemIconTheme())
|
||||
#endif
|
||||
{
|
||||
const Preferences *const pref = Preferences::instance();
|
||||
if (m_useCustomTheme) {
|
||||
@@ -87,10 +90,6 @@ UIThemeManager::UIThemeManager()
|
||||
applyPalette();
|
||||
}
|
||||
}
|
||||
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
|
||||
m_useSystemTheme = pref->useSystemIconTheme();
|
||||
#endif
|
||||
}
|
||||
|
||||
UIThemeManager *UIThemeManager::instance()
|
||||
|
||||
Reference in New Issue
Block a user