diff --git a/src/gui/application.cpp b/src/gui/application.cpp index f6b73d559ea4f..12080fea63b3a 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -1025,7 +1025,7 @@ void Application::addCustomStyleSheet() QFile file(QStringLiteral(":/qss/theme/Style/style.qss")); if (file.open(QFile::ReadOnly)) { - QString styleSheet = QLatin1String(file.readAll()); + const auto &styleSheet = QString::fromLatin1(file.readAll()); setStyleSheet(styleSheet.arg(background, dark, highlightColor, highlightTextColor)); } }