* fix warning about deprecated conversion

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39412 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-11-13 00:21:23 +00:00
parent 040eb824e4
commit 5ae9cf0060

View File

@ -19,7 +19,7 @@ extern "C" char*
nl_langinfo(nl_item item)
{
if (item < 0 || item >= _NL_LANGINFO_LAST)
return "";
return const_cast<char*>("");
if (gLocaleBackend != NULL)
return const_cast<char*>(gLocaleBackend->GetLanginfo(item));