summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-02-20 14:03:03 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-02-21 13:44:08 (GMT)
commit7ef73c9b9eb445796b6a9296618daf3b085841c4 (patch)
tree376f7505eccb950128d62fd964f748bc38f313a1 /src
parentbb8715924f79cfa0c31adc63b6f8ea93bb2988b9 (diff)
downloadQt-7ef73c9b9eb445796b6a9296618daf3b085841c4.zip
Qt-7ef73c9b9eb445796b6a9296618daf3b085841c4.tar.gz
Qt-7ef73c9b9eb445796b6a9296618daf3b085841c4.tar.bz2
Fix warning about QLatin1String::operator==(const char*) deprecated
Use qstrcmp instead.
Diffstat (limited to 'src')
-rw-r--r--src/network/bearer/qnetworksession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp
index 553410e..af60a43 100644
--- a/src/network/bearer/qnetworksession.cpp
+++ b/src/network/bearer/qnetworksession.cpp
@@ -680,7 +680,7 @@ void QNetworkSession::connectNotify(const char *signal)
//check for preferredConfigurationChanged() signal connect notification
//This is not required on all platforms
- if (QLatin1String(signal) == SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool)))
+ if (qstrcmp(signal, SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool))) == 0)
d->setALREnabled(true);
}
@@ -701,7 +701,7 @@ void QNetworkSession::disconnectNotify(const char *signal)
//check for preferredConfigurationChanged() signal disconnect notification
//This is not required on all platforms
- if (QLatin1String(signal) == SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool)))
+ if (qstrcmp(signal, SIGNAL(preferredConfigurationChanged(QNetworkConfiguration,bool))) == 0)
d->setALREnabled(false);
}