shouldn't double-acquire
This commit is contained in:
parent
073a968b62
commit
594148fe07
1 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ public:
|
|||
void getLanguage_002()
|
||||
{
|
||||
rtl::OLocale aLocale = ::rtl::OLocale::getDefault();
|
||||
rtl::OUString suLanguage = rtl_locale_getLanguage(aLocale.getData());
|
||||
rtl::OUString suLanguage(rtl_locale_getLanguage(aLocale.getData()), SAL_NO_ACQUIRE);
|
||||
CPPUNIT_ASSERT_MESSAGE("locale language must be 'de'", suLanguage.equals(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("de"))));
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ public:
|
|||
void getCountry_002()
|
||||
{
|
||||
rtl::OLocale aLocale = ::rtl::OLocale::getDefault();
|
||||
rtl::OUString suCountry = rtl_locale_getCountry(aLocale.getData());
|
||||
rtl::OUString suCountry(rtl_locale_getCountry(aLocale.getData()), SAL_NO_ACQUIRE);
|
||||
CPPUNIT_ASSERT_MESSAGE("locale country must be 'DE'", suCountry.equals(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DE"))));
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,7 @@ public:
|
|||
void getVariant_002()
|
||||
{
|
||||
rtl::OLocale aLocale = ::rtl::OLocale::getDefault();
|
||||
rtl::OUString suVariant = rtl_locale_getVariant(aLocale.getData());
|
||||
rtl::OUString suVariant(rtl_locale_getVariant(aLocale.getData()), SAL_NO_ACQUIRE);
|
||||
CPPUNIT_ASSERT_MESSAGE("locale variant must be 'hochdeutsch'", suVariant.equals(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("hochdeutsch"))));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue