summaryrefslogtreecommitdiff
path: root/sal/qa/rtl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-04 21:21:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-04 21:21:55 +0100
commit594148fe07cc9d758642d511e5c238fdaa9b0940 (patch)
tree664f9c0d37cae5deea669c2d7c433e260ededc38 /sal/qa/rtl
parent073a968b62cd24d33db156474d0e020579b3b1ac (diff)
shouldn't double-acquire
Diffstat (limited to 'sal/qa/rtl')
-rw-r--r--sal/qa/rtl/locale/rtl_locale.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/locale/rtl_locale.cxx b/sal/qa/rtl/locale/rtl_locale.cxx
index cda5b96c1cf0..1cf34c08603e 100644
--- a/sal/qa/rtl/locale/rtl_locale.cxx
+++ b/sal/qa/rtl/locale/rtl_locale.cxx
@@ -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"))));
}