Fix compiler warnings in Qt Network.

- Missing return value
- Wrong format for qint64

Change-Id: Id0de58c85b7c8ed2a62f7237fd23e6c5a5ac92ec
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
bb10
Friedemann Kleint 2012-01-19 08:33:55 +01:00 committed by Qt by Nokia
parent 9d0a41b1ca
commit 911fd94913
2 changed files with 4 additions and 3 deletions

View File

@ -1964,7 +1964,7 @@ void QNetworkReplyHttpImplPrivate::setCachingEnabled(bool enable)
if (enable) {
if (bytesDownloaded) {
qDebug("setCachingEnabled: %d bytesDownloaded", bytesDownloaded);
qDebug("setCachingEnabled: %lld bytesDownloaded", bytesDownloaded);
// refuse to enable in this case
qCritical("QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written");
return;

View File

@ -475,8 +475,6 @@ QString QNetworkConfiguration::bearerTypeName() const
return QString();
switch (d->bearerType) {
case BearerUnknown:
return QStringLiteral("Unknown");
case BearerEthernet:
return QStringLiteral("Ethernet");
case BearerWLAN:
@ -493,7 +491,10 @@ QString QNetworkConfiguration::bearerTypeName() const
return QStringLiteral("Bluetooth");
case BearerWiMAX:
return QStringLiteral("WiMAX");
case BearerUnknown:
break;
}
return QStringLiteral("Unknown");
}
QT_END_NAMESPACE