From 99cb0d3e68921c52311b4dce032d8d2bf39a969f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 5 Aug 2016 09:17:10 +0200 Subject: configmgr: fix loplugin:cppunitassertequals warnings Change-Id: I19e197db4158939875fab0d9e51d903aa1671b37 Reviewed-on: https://gerrit.libreoffice.org/27893 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- configmgr/qa/unit/test.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configmgr') diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 9f9c20306acf..00903eb80417 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -156,7 +156,7 @@ void RecursiveTest::test() css::uno::UNO_QUERY_THROW); properties_->addPropertyChangeListener("Label", this); step(); - CPPUNIT_ASSERT(count_ == 0); + CPPUNIT_ASSERT_EQUAL(0, count_); css::uno::Reference< css::lang::XComponent >( properties_, css::uno::UNO_QUERY_THROW)->dispose(); } @@ -233,7 +233,7 @@ void Test::testKeySet() "/org.openoffice.System/L10N", "Locale") >>= s); - CPPUNIT_ASSERT( s == "com.sun.star.configuration.backend.LocaleBackend UILocale" ); + CPPUNIT_ASSERT_EQUAL( OUString("com.sun.star.configuration.backend.LocaleBackend UILocale"), s ); } void Test::testKeyReset() @@ -248,7 +248,7 @@ void Test::testKeyReset() "/org.openoffice.System/L10N", "Locale") >>= s); - CPPUNIT_ASSERT( s == "com.sun.star.configuration.backend.LocaleBackend Locale" ); + CPPUNIT_ASSERT_EQUAL( OUString("com.sun.star.configuration.backend.LocaleBackend Locale"), s ); } } @@ -261,7 +261,7 @@ void Test::testSetSetMemberName() ".uno:FontworkShapeType", "Label") >>= s); - CPPUNIT_ASSERT( s == "Fontwork Shape" ); + CPPUNIT_ASSERT_EQUAL( OUString("Fontwork Shape"), s ); css::uno::Reference< css::container::XNameAccess > access( createUpdateAccess( @@ -283,7 +283,7 @@ void Test::testSetSetMemberName() ".uno:FontworkShapeType", "Label") >>= s); - CPPUNIT_ASSERT( s == "Fontwork Style" ); + CPPUNIT_ASSERT_EQUAL( OUString("Fontwork Style"), s ); } void Test::testInsertSetMember() { -- cgit