Use qstrcmp instead of comparing char* pointer with a string literal [-Waddress]

Reviewed by: mgraesslin
This commit is contained in:
Hrvoje Senjan 2015-02-17 16:11:20 +01:00
parent 462ad8a6ca
commit 9f677ebb55

View File

@ -589,7 +589,7 @@ void AppletInterface::setGlobalShortcut(const QKeySequence &sequence)
QObject *AppletInterface::nativeInterface()
{
if (applet()->metaObject()->className() != "Plasma::Applet") {
if (qstrcmp(applet()->metaObject()->className(),"Plasma::Applet") != 0) {
return applet();
} else {
if (!m_dummyNativeInterface) {