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
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
const char *ThemePrivate::defaultTheme = "default";
|
const char ThemePrivate::defaultTheme[] = "default";
|
||||||
const char *ThemePrivate::themeRcFile = "plasmarc";
|
const char ThemePrivate::themeRcFile[] = "plasmarc";
|
||||||
// the system colors theme is used to cache unthemed svgs with colorization needs
|
// 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
|
// 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
|
#if HAVE_X11
|
||||||
EffectWatcher *ThemePrivate::s_blurEffectWatcher = 0;
|
EffectWatcher *ThemePrivate::s_blurEffectWatcher = 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -98,9 +98,9 @@ Q_SIGNALS:
|
|||||||
void smallestFontChanged();
|
void smallestFontChanged();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const char *defaultTheme;
|
static const char defaultTheme[];
|
||||||
static const char *systemColorsTheme;
|
static const char systemColorsTheme[];
|
||||||
static const char *themeRcFile;
|
static const char themeRcFile[];
|
||||||
#if HAVE_X11
|
#if HAVE_X11
|
||||||
static EffectWatcher *s_blurEffectWatcher;
|
static EffectWatcher *s_blurEffectWatcher;
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
#include "platformstatusadaptor.h"
|
#include "platformstatusadaptor.h"
|
||||||
#include "../plasma/config-plasma.h"
|
#include "../plasma/config-plasma.h"
|
||||||
|
|
||||||
const char *defaultPackage = "org.kde.plasma.desktop";
|
const char defaultPackage[] = "org.kde.plasma.desktop";
|
||||||
const char *defaultLnFPackage = "org.kde.breeze.desktop";
|
const char defaultLnFPackage[] = "org.kde.breeze.desktop";
|
||||||
|
|
||||||
K_PLUGIN_FACTORY(PlatformStatusFactory, registerPlugin<PlatformStatus>();)
|
K_PLUGIN_FACTORY(PlatformStatusFactory, registerPlugin<PlatformStatus>();)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user