summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2011-04-27 22:36:13 +0200
committerPino Toscano <pino@kde.org>2011-04-27 22:36:13 +0200
commitad131763640b2e27dde75c42b514386284b6a60d (patch)
tree71c2c0156e6f1656ceaaea3fd485e02297a74448 /qt4
parentbe08dd69d9dd4fcb22400f2f0aea331222e88e4a (diff)
[qt4/tests] turn some assignments to bool into QVERIFY checks
Diffstat (limited to 'qt4')
-rw-r--r--qt4/tests/check_optcontent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt4/tests/check_optcontent.cpp b/qt4/tests/check_optcontent.cpp
index ffa0e033..b59ec48f 100644
--- a/qt4/tests/check_optcontent.cpp
+++ b/qt4/tests/check_optcontent.cpp
@@ -430,7 +430,7 @@ void TestOptionalContent::checkRadioButtons()
QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked );
// RBGroup of languages, so turning on Japanese should turn off English
- bool result = optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole );
+ QVERIFY( optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole ) );
subindex = optContent->index( 0, 0, index );
QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) );
@@ -445,7 +445,7 @@ void TestOptionalContent::checkRadioButtons()
QCOMPARE( static_cast<Qt::CheckState>( optContent->data( subindex, Qt::CheckStateRole ).toInt() ), Qt::Unchecked );
// and turning on French should turn off Japanese
- result = optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole );
+ QVERIFY( optContent->setData( subindex, QVariant( true ), Qt::CheckStateRole ) );
subindex = optContent->index( 0, 0, index );
QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) );
@@ -461,7 +461,7 @@ void TestOptionalContent::checkRadioButtons()
// and turning off French should leave them all off
- result = optContent->setData( subindex, QVariant( false ), Qt::CheckStateRole );
+ QVERIFY( optContent->setData( subindex, QVariant( false ), Qt::CheckStateRole ) );
subindex = optContent->index( 0, 0, index );
QCOMPARE( optContent->data( subindex, Qt::DisplayRole ).toString(), QString( "English" ) );