summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qhostinfo_symbian.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-21 17:12:56 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-03-21 17:12:56 (GMT)
commit67c6737c6702506b5b09fd84389e20ba539cc000 (patch)
tree6524345f4ff0dd3f8874a711add7d47443db3437 /src/network/kernel/qhostinfo_symbian.cpp
parente29e13ff537a92f7d2afe34893d8bae8a6788bed (diff)
downloadQt-67c6737c6702506b5b09fd84389e20ba539cc000.zip
Qt-67c6737c6702506b5b09fd84389e20ba539cc000.tar.gz
Qt-67c6737c6702506b5b09fd84389e20ba539cc000.tar.bz2
Fix bugs where = used instead of ==
Reviewed-by: Aaron Tunney
Diffstat (limited to 'src/network/kernel/qhostinfo_symbian.cpp')
-rw-r--r--src/network/kernel/qhostinfo_symbian.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/kernel/qhostinfo_symbian.cpp b/src/network/kernel/qhostinfo_symbian.cpp
index 12e59c6..347bf67 100644
--- a/src/network/kernel/qhostinfo_symbian.cpp
+++ b/src/network/kernel/qhostinfo_symbian.cpp
@@ -101,7 +101,7 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName, QSharedPointer<QNetw
hostResolver.GetByAddress(IpAdd, nameResult);
if (err) {
// TODO - Could there be other errors? Symbian docs don't say.
- if (err = KErrNotFound) {
+ if (err == KErrNotFound) {
results.setError(QHostInfo::HostNotFound);
results.setErrorString(tr("Host not found"));
} else {
@@ -136,7 +136,7 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName, QSharedPointer<QNetw
err = hostResolver.GetByName(qt_QString2TPtrC(QString::fromLatin1(aceHostname)), nameResult);
if (err) {
// TODO - Could there be other errors? Symbian docs don't say.
- if (err = KErrNotFound) {
+ if (err == KErrNotFound) {
results.setError(QHostInfo::HostNotFound);
results.setErrorString(tr("Host not found"));
} else {
@@ -358,7 +358,7 @@ void QSymbianHostResolver::processNameResults()
TInt err = iStatus.Int();
if (err < 0) {
// TODO - Could there be other errors? Symbian docs don't say.
- if (err = KErrNotFound) {
+ if (err == KErrNotFound) {
iResults.setError(QHostInfo::HostNotFound);
iResults.setErrorString(QObject::tr("Host not found"));
} else {
@@ -407,7 +407,7 @@ void QSymbianHostResolver::processAddressResults()
if (err < 0) {
// TODO - Could there be other errors? Symbian docs don't say.
- if (err = KErrNotFound) {
+ if (err == KErrNotFound) {
iResults.setError(QHostInfo::HostNotFound);
iResults.setErrorString(QObject::tr("Host not found"));
} else {
@@ -516,7 +516,7 @@ void QSymbianHostInfoLookupManger::abortLookup(int id)
// Find the aborted lookup by ID.
// First in the current lookups.
for (i = 0; i < iCurrentLookups.Count(); i++) {
- if (id = iCurrentLookups[i]->id()) {
+ if (id == iCurrentLookups[i]->id()) {
QSymbianHostResolver* r = iCurrentLookups[i];
iCurrentLookups.Remove(i);
r->Cancel();
@@ -526,7 +526,7 @@ void QSymbianHostInfoLookupManger::abortLookup(int id)
}
// Then in the scheduled lookups.
for (i = 0; i < iScheduledLookups.Count(); i++) {
- if (id = iScheduledLookups[i]->id()) {
+ if (id == iScheduledLookups[i]->id()) {
QSymbianHostResolver* r = iScheduledLookups[i];
iScheduledLookups.Remove(i);
delete r;