sal/osl/unx/nlsupport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 46b6ddc000a12795af361062bce471fa6e997d9a Author: Jan-Marek Glogowski <[email protected]> AuthorDate: Mon Jan 10 10:38:52 2022 +0100 Commit: Jan-Marek Glogowski <[email protected]> CommitDate: Tue Jan 11 05:23:45 2022 +0100 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 <[email protected]> diff --git a/sal/osl/unx/nlsupport.cxx b/sal/osl/unx/nlsupport.cxx index b1b1af706491..cc07a13805ba 100644 --- a/sal/osl/unx/nlsupport.cxx +++ b/sal/osl/unx/nlsupport.cxx @@ -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" );
