mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
char * for string literals is deprecated...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26526 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
21c6e3305a
commit
7aa28f3efe
@ -72,8 +72,8 @@ namespace lyx {
|
||||
|
||||
void Messages::setDefaultLanguage()
|
||||
{
|
||||
char * env_lang[5] = {"LANGUAGE", "LC_ALL", "LC_MESSAGES", "LC_MESSAGE",
|
||||
"LANG"};
|
||||
char const * env_lang[5] = {"LANGUAGE", "LC_ALL", "LC_MESSAGES",
|
||||
"LC_MESSAGE", "LANG"};
|
||||
for (size_t i = 0; i != 5; ++i) {
|
||||
string const lang = getEnv(env_lang[i]);
|
||||
if (lang.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user