summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/network/kernel/qhostinfo_symbian.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/network/kernel/qhostinfo_symbian.cpp b/src/network/kernel/qhostinfo_symbian.cpp
index 5998a72..02bef40 100644
--- a/src/network/kernel/qhostinfo_symbian.cpp
+++ b/src/network/kernel/qhostinfo_symbian.cpp
@@ -160,13 +160,7 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName, QSharedPointer<QNetw
// Ensure that record is valid (not an alias and with length greater than 0)
if (!(nameResult().iFlags & TNameRecord::EAlias) && (ipAddr.Length() > 0)) {
- if (nameResult().iAddr.Family() == KAfInet) {
- // IPv4 - prepend
- hostAddresses.prepend(QHostAddress(qt_TDesC2QString(ipAddr)));
- } else {
- // IPv6 - append
- hostAddresses.append(QHostAddress(qt_TDesC2QString(ipAddr)));
- }
+ hostAddresses.append(QHostAddress(qt_TDesC2QString(ipAddr)));
}
}
@@ -389,13 +383,7 @@ void QSymbianHostResolver::processNameResults()
// Ensure that record is valid (not an alias and with length greater than 0)
if (!(iNameResult().iFlags & TNameRecord::EAlias) && (ipAddr.Length() > 0)) {
- if (iNameResult().iAddr.Family() == KAfInet) {
- // IPv4 - prepend
- hostAddresses.prepend(QHostAddress(qt_TDesC2QString(ipAddr)));
- } else {
- // IPv6 - append
- hostAddresses.append(QHostAddress(qt_TDesC2QString(ipAddr)));
- }
+ hostAddresses.append(QHostAddress(qt_TDesC2QString(ipAddr)));
}
}