summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-05 09:17:10 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-05 11:40:14 +0000
commit99cb0d3e68921c52311b4dce032d8d2bf39a969f (patch)
tree5a855deb188fe48c217cde62c06959cd00dab8a6 /configmgr
parent7fa183cb1a04120b37069c63166182065c3d975c (diff)
configmgr: fix loplugin:cppunitassertequals warnings
Change-Id: I19e197db4158939875fab0d9e51d903aa1671b37 Reviewed-on: https://gerrit.libreoffice.org/27893 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx10
1 files changed, 5 insertions, 5 deletions
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() {