Use true and false in preference to TRUE and FALSE in tests.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 30 Dec 2011 05:51:05 +0000 (15:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Jan 2012 01:57:12 +0000 (02:57 +0100)
commitfda36df6babf20bcfd04a54a1336a9c26e72a8ef
tree0c09018e6db15ea40e156b38854e224e62e9130f
parent39f3ee8a5dd499cf86f95e7fc9200eb3226b16be
Use true and false in preference to TRUE and FALSE in tests.

Use the C++ boolean constants true and false instead of the C macros
TRUE and FALSE (which are actually integers), and use QVERIFY instead of
QCOMPARE for verifying simple boolean expressions.

Change-Id: Ie76dfcab6722df6b93b3fa62b0f3437901482932
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
30 files changed:
tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp
tests/auto/corelib/io/qfile/tst_qfile.cpp
tests/auto/corelib/io/qsettings/tst_qsettings.cpp
tests/auto/corelib/kernel/qobject/tst_qobject.cpp
tests/auto/corelib/thread/qwaitcondition/tst_qwaitcondition.cpp
tests/auto/gui/kernel/qmouseevent/tst_qmouseevent.cpp
tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp
tests/auto/gui/painting/qpainter/utils/createImages/main.cpp
tests/auto/gui/painting/qpen/tst_qpen.cpp
tests/auto/gui/painting/qpolygon/tst_qpolygon.cpp
tests/auto/gui/painting/qprinter/tst_qprinter.cpp
tests/auto/network/access/qftp/tst_qftp.cpp
tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
tests/auto/other/exceptionsafety_objects/oomsimulator.h
tests/auto/other/qaccessibility/tst_qaccessibility.cpp
tests/auto/other/qfocusevent/tst_qfocusevent.cpp
tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp
tests/auto/widgets/dialogs/qfontdialog/tst_qfontdialog.cpp
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
tests/auto/widgets/widgets/qabstractbutton/tst_qabstractbutton.cpp
tests/auto/widgets/widgets/qcheckbox/tst_qcheckbox.cpp
tests/auto/widgets/widgets/qcommandlinkbutton/tst_qcommandlinkbutton.cpp
tests/auto/widgets/widgets/qlabel/tst_qlabel.cpp
tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp
tests/auto/widgets/widgets/qpushbutton/tst_qpushbutton.cpp
tests/auto/widgets/widgets/qtoolbox/tst_qtoolbox.cpp
tests/auto/widgets/widgets/qworkspace/tst_qworkspace.cpp
tests/auto/xml/dom/qdom/tst_qdom.cpp
tests/auto/xml/sax/qxmlsimplereader/parser/parser.cpp