Use qstrcmp instead of comparing char* pointer with a string literal [-Waddress]
Reviewed by: mgraesslin
This commit is contained in:
parent
462ad8a6ca
commit
9f677ebb55
@ -589,7 +589,7 @@ void AppletInterface::setGlobalShortcut(const QKeySequence &sequence)
|
|||||||
|
|
||||||
QObject *AppletInterface::nativeInterface()
|
QObject *AppletInterface::nativeInterface()
|
||||||
{
|
{
|
||||||
if (applet()->metaObject()->className() != "Plasma::Applet") {
|
if (qstrcmp(applet()->metaObject()->className(),"Plasma::Applet") != 0) {
|
||||||
return applet();
|
return applet();
|
||||||
} else {
|
} else {
|
||||||
if (!m_dummyNativeInterface) {
|
if (!m_dummyNativeInterface) {
|
||||||
|
Loading…
Reference in New Issue
Block a user