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:
André Pönitz 2008-09-24 19:51:46 +00:00
parent 21c6e3305a
commit 7aa28f3efe

View File

@ -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())