diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 09:19:49 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-16 10:55:36 +0200 |
commit | 81ce0f37728295660a3b6a7a09920f16f3fc7663 (patch) | |
tree | b3005eb1786eed12b62ac505ca7401d1e816bbbf /filter | |
parent | a2b77b43685884fb4e9be04152a49294fa50db36 (diff) |
filter: fix loplugin:cppunitassertequals warnings
Change-Id: Ibb80377a581d70501dbd243307e883057508e67f
Diffstat (limited to 'filter')
-rw-r--r-- | filter/qa/cppunit/priority-test.cxx | 4 | ||||
-rw-r--r-- | filter/qa/cppunit/xslt-test.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/qa/cppunit/priority-test.cxx b/filter/qa/cppunit/priority-test.cxx index 70093fb68d2e..9eff49ffc2f2 100644 --- a/filter/qa/cppunit/priority-test.cxx +++ b/filter/qa/cppunit/priority-test.cxx @@ -69,9 +69,9 @@ void PriorityFilterTest::testPriority() aMsg.append("' should be '"); aMsg.append(aFormatCorrect); aMsg.append("'"); - CPPUNIT_ASSERT_MESSAGE(rtl::OUStringToOString(aMsg.makeStringAndClear(), + CPPUNIT_ASSERT_EQUAL_MESSAGE(rtl::OUStringToOString(aMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr(), - aTypeName == aFormatCorrect); + aFormatCorrect, aTypeName); } catch (const uno::Exception &e) { diff --git a/filter/qa/cppunit/xslt-test.cxx b/filter/qa/cppunit/xslt-test.cxx index 01fe09d58ba7..a19a2a5f8e84 100644 --- a/filter/qa/cppunit/xslt-test.cxx +++ b/filter/qa/cppunit/xslt-test.cxx @@ -76,7 +76,7 @@ void XsltFilterTest::testXsltCopyNew() oslFileHandle tempFile; OUString tempURL; osl::File::RC rc = osl::File::createTempFile(nullptr, &tempFile, &tempURL); - CPPUNIT_ASSERT(osl::FileBase::E_None == rc); + CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, rc); osl_closeFile(tempFile); // close it so xSFA can open it on WNT OUString source( @@ -133,7 +133,7 @@ void XsltFilterTest::testXsltCopyOld() oslFileHandle tempFile; OUString tempURL; osl::File::RC rc = osl::File::createTempFile(nullptr, &tempFile, &tempURL); - CPPUNIT_ASSERT(osl::FileBase::E_None == rc); + CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, rc); osl_closeFile(tempFile); // close it so xSFA can open it on WNT OUString source( |