Skip to content
Snippets Groups Projects
Commit a39e9e9f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

utilsadapter: avoir use-after-free from ASAN

Change-Id: Ic3328ea069af093d412abd7fea29a2df199c1052
parent 70446275
No related branches found
No related tags found
No related merge requests found
...@@ -478,7 +478,7 @@ UtilsAdapter::supportedLang() ...@@ -478,7 +478,7 @@ UtilsAdapter::supportedLang()
for (const auto& f : trFiles) { for (const auto& f : trFiles) {
auto match = regex.indexIn(f); auto match = regex.indexIn(f);
if (regex.capturedTexts().size() == 2) { if (regex.capturedTexts().size() == 2) {
const auto& l = regex.capturedTexts()[1]; auto l = regex.capturedTexts()[1];
auto nativeName = QLocale(l).nativeLanguageName(); auto nativeName = QLocale(l).nativeLanguageName();
if (nativeName.isEmpty()) // If a locale doesn't have any nativeLanguageName, ignore it. if (nativeName.isEmpty()) // If a locale doesn't have any nativeLanguageName, ignore it.
continue; continue;
...@@ -693,7 +693,6 @@ UtilsAdapter::useApplicationTheme() ...@@ -693,7 +693,6 @@ UtilsAdapter::useApplicationTheme()
return isSystemThemeDark(); return isSystemThemeDark();
} }
bool bool
UtilsAdapter::hasNativeDarkTheme() const UtilsAdapter::hasNativeDarkTheme() const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment