Make constants const, saves a few symbols in the .data section.
This commit is contained in:
parent
489ca7b76a
commit
ca77cad251
@ -33,11 +33,11 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
const char *ThemePrivate::defaultTheme = "default";
|
||||
const char *ThemePrivate::themeRcFile = "plasmarc";
|
||||
const char ThemePrivate::defaultTheme[] = "default";
|
||||
const char ThemePrivate::themeRcFile[] = "plasmarc";
|
||||
// the system colors theme is used to cache unthemed svgs with colorization needs
|
||||
// these svgs do not follow the theme's colors, but rather the system colors
|
||||
const char *ThemePrivate::systemColorsTheme = "internal-system-colors";
|
||||
const char ThemePrivate::systemColorsTheme[] = "internal-system-colors";
|
||||
#if HAVE_X11
|
||||
EffectWatcher *ThemePrivate::s_blurEffectWatcher = 0;
|
||||
#endif
|
||||
|
@ -98,9 +98,9 @@ Q_SIGNALS:
|
||||
void smallestFontChanged();
|
||||
|
||||
public:
|
||||
static const char *defaultTheme;
|
||||
static const char *systemColorsTheme;
|
||||
static const char *themeRcFile;
|
||||
static const char defaultTheme[];
|
||||
static const char systemColorsTheme[];
|
||||
static const char themeRcFile[];
|
||||
#if HAVE_X11
|
||||
static EffectWatcher *s_blurEffectWatcher;
|
||||
#endif
|
||||
|
@ -13,8 +13,8 @@
|
||||
#include "platformstatusadaptor.h"
|
||||
#include "../plasma/config-plasma.h"
|
||||
|
||||
const char *defaultPackage = "org.kde.plasma.desktop";
|
||||
const char *defaultLnFPackage = "org.kde.breeze.desktop";
|
||||
const char defaultPackage[] = "org.kde.plasma.desktop";
|
||||
const char defaultLnFPackage[] = "org.kde.breeze.desktop";
|
||||
|
||||
K_PLUGIN_FACTORY(PlatformStatusFactory, registerPlugin<PlatformStatus>();)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user