From ff8f5e6255ed7b627fb42ecd9e2222f18293218f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 6 Jan 2017 08:33:59 +0100 Subject: writerperfect, xmloff: fix loplugin:cppunitassertequals warnings Change-Id: Ie8246433a7cea0886f00d8c76cf6f7d023545417 Reviewed-on: https://gerrit.libreoffice.org/32770 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- xmloff/qa/unit/uxmloff.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff') 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); -- cgit