summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/locale
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-09 09:10:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-06-09 08:45:46 +0000
commit87def0e248cef61e5be8acfb66c191f8552db344 (patch)
tree9cd2327d392d16fc60c536c2fb901fe60a647689 /sal/qa/rtl/locale
parent5e7564dc6917d65d8b5f30534b78c1fe58cf4463 (diff)
CppunitTest_sal_osl_old_test_file: fix loplugin:cppunitassertequals warnings
Also in: - CppunitTest_sal_osl_security - CppunitTest_sal_rtl_crc32 - CppunitTest_sal_osl_thread - CppunitTest_sal_rtl_locale - CppunitTest_sal_rtl_process - CppunitTest_sal_rtl_random Change-Id: I853457f4ddc387728ea4fa201c278c361369a591 Reviewed-on: https://gerrit.libreoffice.org/26085 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sal/qa/rtl/locale')
-rw-r--r--sal/qa/rtl/locale/rtl_locale.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/qa/rtl/locale/rtl_locale.cxx b/sal/qa/rtl/locale/rtl_locale.cxx
index 0f7f2b24848c..751571958f7e 100644
--- a/sal/qa/rtl/locale/rtl_locale.cxx
+++ b/sal/qa/rtl/locale/rtl_locale.cxx
@@ -108,13 +108,13 @@ public:
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suLanguage = pData->Language;
- CPPUNIT_ASSERT_MESSAGE( "locale language must be 'de'", suLanguage == "de" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale language must be 'de'", OUString("de"), suLanguage );
}
void getLanguage_002()
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suLanguage(rtl_locale_getLanguage(pData), SAL_NO_ACQUIRE);
- CPPUNIT_ASSERT_MESSAGE( "locale language must be 'de'", suLanguage == "de" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale language must be 'de'", OUString("de"), suLanguage );
}
// Change the following lines only, if you add, remove or rename
@@ -142,13 +142,13 @@ public:
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suCountry = pData->Country;
- CPPUNIT_ASSERT_MESSAGE( "locale country must be 'DE'", suCountry == "DE" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale country must be 'DE'", OUString("DE"), suCountry );
}
void getCountry_002()
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suCountry(rtl_locale_getCountry(pData), SAL_NO_ACQUIRE);
- CPPUNIT_ASSERT_MESSAGE( "locale country must be 'DE'", suCountry == "DE" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale country must be 'DE'", OUString("DE"), suCountry );
}
// Change the following lines only, if you add, remove or rename
@@ -176,13 +176,13 @@ public:
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suVariant = pData->Variant;
- CPPUNIT_ASSERT_MESSAGE( "locale variant must be 'hochdeutsch'", suVariant == "hochdeutsch" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale variant must be 'hochdeutsch'", OUString("hochdeutsch"), suVariant );
}
void getVariant_002()
{
rtl_Locale* pData = rtl_locale_getDefault();
rtl::OUString suVariant(rtl_locale_getVariant(pData), SAL_NO_ACQUIRE);
- CPPUNIT_ASSERT_MESSAGE( "locale variant must be 'hochdeutsch'", suVariant == "hochdeutsch" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "locale variant must be 'hochdeutsch'", OUString("hochdeutsch"), suVariant );
}
// Change the following lines only, if you add, remove or rename