QTestLib: clean up qCompare specialisation/overload mix
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 20 Sep 2012 14:36:51 +0000 (16:36 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 23 Sep 2012 21:29:42 +0000 (23:29 +0200)
commite44f1dabe44f4979da5da7d5d50395883f3de684
treefed290bdb7e900c5bf5855cb1dae7979ca14e6f1
parentef23f5d9bd3d82a6a1b5c3adb50d6ad4bfe127bb
QTestLib: clean up qCompare specialisation/overload mix

qCompare() was both overloaded and specialised, but always as a template.
This lead to the QIcon specialisation actually invoking
   qCompare(QFlags<void*>, ...)
when specifically asking for qCompare<void*>() (detected by adding
underlying-type detection to QFlags).

Fix by preferring overloading and not specialising anything.

Change-Id: Ie001ebb9dfb0847c6c33a3f45177a61579fd61ee
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
dist/changes-5.0.0
src/testlib/qtest.h
src/testlib/qtest_gui.h
src/testlib/qtestcase.cpp
src/testlib/qtestcase.h