configmgr/qa/unit/test.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 99cb0d3e68921c52311b4dce032d8d2bf39a969f Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Fri Aug 5 09:17:10 2016 +0200 configmgr: fix loplugin:cppunitassertequals warnings Change-Id: I19e197db4158939875fab0d9e51d903aa1671b37 Reviewed-on: https://gerrit.libreoffice.org/27893 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 9f9c203..00903eb 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() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits