Skip to content

Commit 0e00ba0

Browse files
committed
Code cleanup
1 parent 1c989ae commit 0e00ba0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qrgui/mainWindow/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ static void setDefaultLocale(bool localizationDisabled)
7878
auto const &languageName = SettingsManager::value("systemLocale").toString();
7979
QLocale locale = languageName.isEmpty()? QLocale() : QLocale(languageName); // Empty string results to "C" locale
8080
QLocale::setDefault(locale);
81-
QLocale defaultLocale;
82-
if (locale != defaultLocale) {
83-
QLOG_ERROR() << "Requested locale was" << locale.bcp47Name() << ", but" << defaultLocale.bcp47Name() << "is set";
81+
QLocale dfltLocale;
82+
if (locale != dfltLocale) {
83+
QLOG_ERROR() << "Requested locale was" << locale.bcp47Name() << ", but" << dfltLocale.bcp47Name() << "is set";
8484
}
8585
auto language = locale.language();
8686
if (language != QLocale::Language::C && language != QLocale::Language::English) {

0 commit comments

Comments
 (0)