summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-29 14:27:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-29 14:27:21 +0200
commit59722bbb7c9eda0b8e23340eda2ce3029b627542 (patch)
treeb8f1afa73cdd6637c7bd152428ff2e5244bb90e8 /sal
parent4aad7e6330d1a49f17c3362dcd593b00bcdd3523 (diff)
loplugin:cstylecast
Change-Id: Iec37e09d0da181f6af268fa0c8c43a2e1fef5dbe
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/osxlocale.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx
index 3fb96648ba67..f8b0054aef8f 100644
--- a/sal/osl/unx/osxlocale.cxx
+++ b/sal/osl/unx/osxlocale.cxx
@@ -57,7 +57,7 @@ namespace
if (pref == NULL) // return fallback value 'en_US'
return CFStringCreateWithCString(kCFAllocatorDefault, "en_US", kCFStringEncodingASCII);
- CFStringRef sref = (CFGetTypeID(pref) == CFArrayGetTypeID()) ? (CFStringRef)CFArrayGetValueAtIndex((CFArrayRef)pref, 0) : (CFStringRef)pref;
+ CFStringRef sref = (CFGetTypeID(pref) == CFArrayGetTypeID()) ? static_cast<CFStringRef>(CFArrayGetValueAtIndex(static_cast<CFArrayRef>(pref), 0)) : static_cast<CFStringRef>(pref);
return CFLocaleCreateCanonicalLocaleIdentifierFromString(kCFAllocatorDefault, sref);
}
@@ -84,14 +84,14 @@ rtl::OUString macosx_getLocale()
CFArrayGuard arrGuard(subs);
rtl::OUStringBuffer buf;
- append(buf, (CFStringRef)CFArrayGetValueAtIndex(subs, 0));
+ append(buf, static_cast<CFStringRef>(CFArrayGetValueAtIndex(subs, 0)));
// country also available? Assumption: if the array contains more than one
// value the second value is always the country!
if (CFArrayGetCount(subs) > 1)
{
buf.append("_");
- append(buf, (CFStringRef)CFArrayGetValueAtIndex(subs, 1));
+ append(buf, static_cast<CFStringRef>(CFArrayGetValueAtIndex(subs, 1)));
}
// Append 'UTF-8' to the locale because the Mac OS X file
// system interface is UTF-8 based and sal tries to determine