Fix QUrl operator== and operator<
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 28 Mar 2012 22:31:45 +0000 (19:31 -0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 23:19:59 +0000 (01:19 +0200)
commit66df11f4d109ca3d97fed8985d6bbc6dcf90733d
tree0c514e0c7b03beea92403baaa380c6158cead84f
parent64a10879cb1f3a48b4b44c2e3a46694efb3bec0a
Fix QUrl operator== and operator<

Don't crash when either side is null but not both sides.

Also make sure operator< is working properly and satisfies the basic
conditions of a type (such as that if A < B, then !(B < A)).

Change-Id: Idd9e9fc593e1a7781d9f4f2b13a1024b643926fd
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/io/qurl.cpp
src/corelib/io/qurl_p.h
tests/auto/corelib/io/qurl/tst_qurl.cpp