Skip to content

Commit

Permalink
Replace some QStrings with literals
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Aug 25, 2021
1 parent 7694e17 commit 8319a89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/appupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8319a89

Please sign in to comment.