Fix null/empty confusion in KUrl::htmlRef() and its unittests.
author David Faure
()
committer David Faure
()
commit 7977f1a8d7145ddadebfc539eef8af7011bd897e
tree 30b5fe8bbc3628199da54271840a0710411933b6
parent 10ca4ddc8cca49103c2d605a64468788605f3010
Fix null/empty confusion in KUrl::htmlRef() and its unittests.

Patch by Andrea Iacovitti <aiacovitti@libero.it>, who wrote:

This aims to be a fix for bug #276204 related to htmlRef(), and the kurl unit
test that return a false positive because of QCOMPARE treating QString("") == QString()
After fixing the unit test related to url reference stuff, 2 of them failed.
One related to htmlRef() (as in #276204),
the other related to setRef() not able to set Empty (but not Null) ref.
-> fixed setRef() too.
CCBUG: 276204
kdecore/io/kurl.cpp
kdecore/tests/kurltest.cpp
kdecore/tests/kurltest.h