summaryrefslogtreecommitdiff
path: root/comphelper/qa/unit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-10 09:08:24 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-10 10:56:02 +0000
commit583e41b9c8f734cb403b9ba9ffe2d0844fab981f (patch)
tree33f9051430ed8d9c210b9a6d5a43d1656cea454d /comphelper/qa/unit
parentb17b4da3a713b935e7eb8cf23978689800d10f7f (diff)
comphelper: fix loplugin:cppunitassertequals warnings
Change-Id: If042462d8f250dbe2e1be278b7524dab243b08e8 Reviewed-on: https://gerrit.libreoffice.org/28012 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'comphelper/qa/unit')
-rw-r--r--comphelper/qa/unit/variadictemplates.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/comphelper/qa/unit/variadictemplates.cxx b/comphelper/qa/unit/variadictemplates.cxx
index 4b45f1767606..0f5dafff6f69 100644
--- a/comphelper/qa/unit/variadictemplates.cxx
+++ b/comphelper/qa/unit/variadictemplates.cxx
@@ -129,11 +129,11 @@ void VariadicTemplatesTest::testUnwrapArgs() {
::com::sun::star::uno::Any* p2 = seq2.getArray();
for( sal_Int16 i = 0; i < seq1.getLength() && i < seq2.getLength(); ++i ) {
- CPPUNIT_ASSERT_MESSAGE( "seq1 and seq2 are equal",
- p1[i] == p2[i] );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "seq1 and seq2 are equal",
+ p1[i], p2[i] );
}
CPPUNIT_ASSERT_MESSAGE( "seq1 and seq2 are equal",
- seq1 == seq2 );
+ bool(seq1 == seq2) );
}
catch( ::com::sun::star::lang::IllegalArgumentException& err ) {
std::stringstream ss;
@@ -171,8 +171,8 @@ void VariadicTemplatesTest::testUnwrapArgs() {
CPPUNIT_FAIL( "unwrapArgs failed while the baseline did not throw" );
}
catch( ::com::sun::star::lang::IllegalArgumentException& err2 ) {
- CPPUNIT_ASSERT_MESSAGE( "err1.ArgumentPosition == err2.ArgumentPosition",
- err1.ArgumentPosition == err2.ArgumentPosition );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "err1.ArgumentPosition == err2.ArgumentPosition",
+ err1.ArgumentPosition, err2.ArgumentPosition );
}
}
}