diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-09-20 15:46:41 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-02 22:34:42 +0200 |
commit | ceca141d0cfb210859db28c8f7725790fe23a767 (patch) | |
tree | 78a603aaae817f7c4df993b46454ec9e881d4ee8 /src/corelib/io | |
parent | fe1541b26883b7ca594012da4621ad8b8b22ec2c (diff) |
Remove the annoying qWarning when QUrl::setPort is out of range
That's what we have QUrl::errorString() for. This will become evident
especially now that QUrl::toString() / toEncoded() return empty if
there are errors.
Change-Id: I64a84e9c6ee57c0fc38cc0c58f5286ddc1248d1f
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qurl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 3c82a2659f..e78d810bdb 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -2105,7 +2105,6 @@ void QUrl::setPort(int port) detach(); if (port < -1 || port > 65535) { - qWarning("QUrl::setPort: Out of range"); port = -1; d->sectionHasError |= QUrlPrivate::Port; d->errorCode = QUrlPrivate::InvalidPortError; |