Fix ISO C++11 -Wwritable-strings

osl/unx/nlsupport.cxx:863:18: warning: ISO C++11 does not allow \
  conversion from string literal to 'char *' [-Wwritable-strings]

Change-Id: I45da986ad8992716df9d1f9a0cc443fdb9cd46ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128213
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
Jan-Marek Glogowski
2022-01-11 05:23:45 +01:00
parent f1f2daefbe
commit 46b6ddc000
+2 -2
View File
@@ -848,10 +848,10 @@ void imp_getProcessLocale( rtl_Locale ** ppLocale )
/* No locale environment variables on Android, so why even bother
* with getenv().
*/
char const * locale = "en-US.UTF-8";
const char* locale = "en-US.UTF-8";
#else
/* simulate behavior off setlocale */
char * locale = getenv( "LC_ALL" );
const char* locale = getenv("LC_ALL");
if( NULL == locale )
locale = getenv( "LC_CTYPE" );