Change QUrlPrivate::setAuthority to return void
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 20 Sep 2012 13:59:46 +0000 (15:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 2 Oct 2012 20:34:42 +0000 (22:34 +0200)
commit9bbccf5d746542a0a17198476f60a70f731ac536
treeea7976f7a8bb165a47ab85fa35caef7afdeb7472
parentceca141d0cfb210859db28c8f7725790fe23a767
Change QUrlPrivate::setAuthority to return void

It used to return bool because setHost returns bool and, therefore,
setAuthority could fail. However, the return value is never checked,
in either parse() or QUrl::setAuthority(), because there's no error
recovery.

This is a small optimisation.

Change-Id: I25660d66cfad64ca5b9706cc38afa0e97ba3ee0b
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl.cpp
src/corelib/io/qurl_p.h