Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Dec 11, 2023
1 parent f52751f commit e6d435c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/nCine/I18n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ namespace nCine
#if defined(DEATH_TARGET_ANDROID)
String langId = AndroidJniWrap_Activity::getPreferredLanguage();
if (!langId.empty()) {
lowercaseInPlace(langId);
StringUtils::lowercaseInPlace(langId);
arrayAppend(preferred, std::move(langId));
}
#elif defined(DEATH_TARGET_APPLE)
Expand All @@ -710,7 +710,7 @@ namespace nCine
CFTypeRef element = CFArrayGetValueAtIndex(prefArray, i);
if (element != nullptr && CFGetTypeID(element) == CFStringGetTypeID() && CFStringGetCString((CFStringRef)element, buffer, sizeof(buffer), kCFStringEncodingASCII)) {
String langId = String(buffer);
lowercaseInPlace(langId);
StringUtils::lowercaseInPlace(langId);
arrayAppend(preferred, std::move(langId));
} else {
break;
Expand All @@ -734,7 +734,7 @@ namespace nCine
for (char& c : langId) {
if (c == '_') c = '-';
}
lowercaseInPlace(langId);
StringUtils::lowercaseInPlace(langId);
arrayAppend(preferred, std::move(langId));
}
#elif defined(DEATH_TARGET_WINDOWS)
Expand Down

0 comments on commit e6d435c

Please sign in to comment.