getting the compiler to stfu

This commit is contained in:
Aaron Seigo 2011-05-28 00:38:34 +02:00
parent 9f3a67df08
commit c462eabf81

View File

@ -30,8 +30,8 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <QX11Info> #include <QX11Info>
#define DASHBOARD_WIN_NAME "dashboard" static const char *DASHBOARD_WIN_NAME = "dashboard";
#define DASHBOARD_WIN_CLASS "dashboard" static const char *DASHBOARD_WIN_CLASS = "dashboard";
#endif #endif
namespace Plasma namespace Plasma
@ -335,8 +335,8 @@ void markAsDashboard(WId window)
{ {
#ifdef Q_WS_X11 #ifdef Q_WS_X11
XClassHint classHint; XClassHint classHint;
classHint.res_name = DASHBOARD_WIN_NAME; classHint.res_name = const_cast<char *>(DASHBOARD_WIN_NAME);
classHint.res_class = DASHBOARD_WIN_CLASS; classHint.res_class = const_cast<char *>(DASHBOARD_WIN_CLASS);
XSetClassHint(QX11Info::display(), window, &classHint); XSetClassHint(QX11Info::display(), window, &classHint);
#endif #endif
} }