summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-19 20:01:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-20 08:34:06 +0100
commit8cbfce51ff659581a9602b22c36b9af1c69e51f8 (patch)
tree9e27f180b1e52d36e03a6b024a748f80e25f7c57 /sal/osl
parent691f11eb6ec0cb51ae835badd60ed09acd4ec44e (diff)
Unused return value
Change-Id: I963d001aee68f1218ba7273562cb41f3cf4c5e20
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/nlsupport.hxx2
-rw-r--r--sal/osl/unx/osxlocale.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/sal/osl/unx/nlsupport.hxx b/sal/osl/unx/nlsupport.hxx
index 676c00c87b12..f7d6ec4a034d 100644
--- a/sal/osl/unx/nlsupport.hxx
+++ b/sal/osl/unx/nlsupport.hxx
@@ -28,7 +28,7 @@ void _imp_getProcessLocale( rtl_Locale ** );
int _imp_setProcessLocale( rtl_Locale * );
#if defined IOS || defined MACOSX
-int macosx_getLocale(char *locale, sal_uInt32 bufferLen);
+void macosx_getLocale(char *locale, sal_uInt32 bufferLen);
#endif
#endif
diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx
index d2fbdb5f22af..9bc574263e6b 100644
--- a/sal/osl/unx/osxlocale.cxx
+++ b/sal/osl/unx/osxlocale.cxx
@@ -63,7 +63,7 @@ namespace
/** Grab current locale from system.
*/
-int macosx_getLocale(char *locale, sal_uInt32 bufferLen)
+void macosx_getLocale(char *locale, sal_uInt32 bufferLen)
{
CFStringRef sref = getProcessLocale();
CFStringGuard sGuard(sref);
@@ -91,8 +91,6 @@ int macosx_getLocale(char *locale, sal_uInt32 bufferLen)
// system interface is UTF-8 based and sal tries to determine
// the file system locale from the locale information
strlcat(locale, ".UTF-8", bufferLen - strlen(locale));
-
- return noErr;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */