Make constants const, saves a few symbols in the .data section.

This commit is contained in:
Volker Krause 2014-09-28 12:40:40 +02:00
parent 489ca7b76a
commit ca77cad251
3 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

@ -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>();)