diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-19 20:01:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-20 08:34:06 +0100 |
commit | 8cbfce51ff659581a9602b22c36b9af1c69e51f8 (patch) | |
tree | 9e27f180b1e52d36e03a6b024a748f80e25f7c57 /sal | |
parent | 691f11eb6ec0cb51ae835badd60ed09acd4ec44e (diff) |
Unused return value
Change-Id: I963d001aee68f1218ba7273562cb41f3cf4c5e20
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/nlsupport.hxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/osxlocale.cxx | 4 |
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: */ |