Removed useless static qualifier on some variables that made them behave weird.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35215 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -513,9 +513,7 @@ BLocaleRoster::GetInstalledLanguages(BMessage *languages) const
|
|||||||
|
|
||||||
#undef REALLY_ALL_LANGUAGES
|
#undef REALLY_ALL_LANGUAGES
|
||||||
#ifdef REALLY_ALL_LANGUAGES
|
#ifdef REALLY_ALL_LANGUAGES
|
||||||
// TODO: Using static variables here looks really weird, and is probably
|
const char* const* icuLocaleList = Locale::getISOLanguages();
|
||||||
// the reason why calling this method a second time will crash.
|
|
||||||
static const char* const* icuLocaleList = Locale::getISOLanguages();
|
|
||||||
|
|
||||||
// Loop over the strings and add them to an std::set to remove duplicates
|
// Loop over the strings and add them to an std::set to remove duplicates
|
||||||
for (i = 0; icuLocaleList[i]; i++) {
|
for (i = 0; icuLocaleList[i]; i++) {
|
||||||
@@ -523,7 +521,7 @@ BLocaleRoster::GetInstalledLanguages(BMessage *languages) const
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int32_t localeCount;
|
int32_t localeCount;
|
||||||
static const Locale* icuLocaleList
|
const Locale* icuLocaleList
|
||||||
= Locale::getAvailableLocales(localeCount);
|
= Locale::getAvailableLocales(localeCount);
|
||||||
|
|
||||||
// Loop over the strings and add them to an std::set to remove duplicates
|
// Loop over the strings and add them to an std::set to remove duplicates
|
||||||
|
|||||||
Reference in New Issue
Block a user