KUrl or QUrl bug?
André Wöbbeking
Woebbeking at kde.org
Fri Jun 18 07:12:14 BST 2010
On Thursday 17 June 2010, Sebastian Trüg wrote:
> Hi guys,
>
> please find attached a patch to the kurltest which will make it fail
> since an url on which you add a query item and then remove it are not
> equal anymore.
KUrl url("http://www.foobar.com/");
url.addQueryItem(QLatin1String("foo"), QLatin1String("bar"));
KUrl url2(url);
KUrl url3(url);
url2.removeQueryItem(QLatin1String("foo"));
QCOMPARE(url, url2);
This one must fail as url still contains the query, no?
More information about the kde-core-devel
mailing list