Kaydet (Commit) 8cbfce51 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Unused return value

Change-Id: I963d001aee68f1218ba7273562cb41f3cf4c5e20
üst 691f11eb
...@@ -28,7 +28,7 @@ void _imp_getProcessLocale( rtl_Locale ** ); ...@@ -28,7 +28,7 @@ void _imp_getProcessLocale( rtl_Locale ** );
int _imp_setProcessLocale( rtl_Locale * ); int _imp_setProcessLocale( rtl_Locale * );
#if defined IOS || defined MACOSX #if defined IOS || defined MACOSX
int macosx_getLocale(char *locale, sal_uInt32 bufferLen); void macosx_getLocale(char *locale, sal_uInt32 bufferLen);
#endif #endif
#endif #endif
......
...@@ -63,7 +63,7 @@ namespace ...@@ -63,7 +63,7 @@ namespace
/** Grab current locale from system. /** Grab current locale from system.
*/ */
int macosx_getLocale(char *locale, sal_uInt32 bufferLen) void macosx_getLocale(char *locale, sal_uInt32 bufferLen)
{ {
CFStringRef sref = getProcessLocale(); CFStringRef sref = getProcessLocale();
CFStringGuard sGuard(sref); CFStringGuard sGuard(sref);
...@@ -91,8 +91,6 @@ int macosx_getLocale(char *locale, sal_uInt32 bufferLen) ...@@ -91,8 +91,6 @@ int macosx_getLocale(char *locale, sal_uInt32 bufferLen)
// system interface is UTF-8 based and sal tries to determine // system interface is UTF-8 based and sal tries to determine
// the file system locale from the locale information // the file system locale from the locale information
strlcat(locale, ".UTF-8", bufferLen - strlen(locale)); strlcat(locale, ".UTF-8", bufferLen - strlen(locale));
return noErr;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment