Checking for QUrl equality is not all that expensive, so remove hack.
authorRobin Burchell <robin+qt@viroteck.net>
Sat, 23 Jun 2012 07:34:27 +0000 (09:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 07:46:01 +0000 (09:46 +0200)
commitb2ff9d346caffa8a6334ab726412b72a1dd1077c
tree85e45a3c599310117bbf551624ce0d3e98a0c2f2
parenta5186a23330ff42b79c121b565e5880ce63856aa
Checking for QUrl equality is not all that expensive, so remove hack.

QUrl's operator== used to perform allocations by comparing normalized URLs, but
even then, this code seemingly would not apply: Qt 4's QUrl still has a fast
path for the case where the URLs are empty, the same as this code implemented.

Change-Id: I69e82c848f47f5e5660bd707bfba0ff7343c8a42
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquickborderimage.cpp
src/quick/items/qquickimagebase.cpp