summaryrefslogtreecommitdiff
path: root/xmloff/qa/unit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-01-06 08:33:59 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-01-06 09:34:59 +0000
commitff8f5e6255ed7b627fb42ecd9e2222f18293218f (patch)
tree3dc315a4c3b15b283af74757c84f2ef5d3dfcb6b /xmloff/qa/unit
parent032b5090729a19170856851215a2ea8ea8616e81 (diff)
writerperfect, xmloff: fix loplugin:cppunitassertequals warnings
Change-Id: Ie8246433a7cea0886f00d8c76cf6f7d023545417 Reviewed-on: https://gerrit.libreoffice.org/32770 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmloff/qa/unit')
-rw-r--r--xmloff/qa/unit/uxmloff.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/qa/unit/uxmloff.cxx b/xmloff/qa/unit/uxmloff.cxx
index 7fc606e248a9..baae1787508f 100644
--- a/xmloff/qa/unit/uxmloff.cxx
+++ b/xmloff/qa/unit/uxmloff.cxx
@@ -78,13 +78,13 @@ void Test::testAutoStylePool()
// not that interesting but worth checking
bool bHack = (getenv("LIBO_ONEWAY_STABLE_ODF_EXPORT") != nullptr);
if (bHack)
- CPPUNIT_ASSERT_MESSAGE( "style / naming changed", aName == "Bob" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "style / naming changed", OUString("Bob"), aName );
else
- CPPUNIT_ASSERT_MESSAGE( "style / naming changed", aName == "Bob1" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "style / naming changed", OUString("Bob1"), aName );
// find ourselves again:
OUString aSameName = xPool->Find( XML_STYLE_FAMILY_TEXT_PARAGRAPH, "", aProperties );
- CPPUNIT_ASSERT_MESSAGE( "same style not found", aSameName == aName );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "same style not found", aName, aSameName );
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);