From 8319a899392459f4dd95274fcedbee6dc3f735f5 Mon Sep 17 00:00:00 2001 From: Georgii Surkov Date: Wed, 25 Aug 2021 18:22:55 +0300 Subject: [PATCH] Replace some QStrings with literals --- application/appupdater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/appupdater.cpp b/application/appupdater.cpp index 1f32c125..98ed1fca 100644 --- a/application/appupdater.cpp +++ b/application/appupdater.cpp @@ -32,11 +32,11 @@ double AppUpdater::progress() const void AppUpdater::installUpdate(const Flipper::Updates::VersionInfo &versionInfo) { #ifdef Q_OS_WINDOWS - const auto fileInfo = versionInfo.fileInfo("installer", "windows/amd64"); + const auto fileInfo = versionInfo.fileInfo(QStringLiteral("installer"), QStringLiteral("windows/amd64")); #elif defined(Q_OS_MAC) - const auto fileInfo = versionInfo.fileInfo("dmg", "macos/amd64"); + const auto fileInfo = versionInfo.fileInfo(QStringLiteral("dmg"), QStringLiteral("macos/amd64")); #elif defined(Q_OS_LINUX) - const auto fileInfo = versionInfo.fileInfo("AppImage", "linux/amd64"); + const auto fileInfo = versionInfo.fileInfo(QStringLiteral("AppImage"), QStringLiteral("linux/amd64")); #else #error "Unsupported OS" #endif