From 2cf76bbcbf6016590032b352d754b744aca0018c Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 30 Nov 2020 12:47:17 +0100 Subject: [PATCH] Repair the Windows Build We now enforce the use of QStringLiteral and friends in some places, but that feel through the cracks for some of the Windows specific code. Signed-off-by: Kevin Ottens --- src/common/utility_win.cpp | 4 ++-- src/csync/csync_exclude.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/utility_win.cpp b/src/common/utility_win.cpp index 7c2f68ee7..5aec8db51 100644 --- a/src/common/utility_win.cpp +++ b/src/common/utility_win.cpp @@ -102,8 +102,8 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName, static inline bool hasDarkSystray_private() { if(Utility::registryGetKeyValue( HKEY_CURRENT_USER, - R"(Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)", - "SystemUsesLightTheme" ) == 1) { + QStringLiteral(R"(Software\Microsoft\Windows\CurrentVersion\Themes\Personalize)"), + QStringLiteral("SystemUsesLightTheme") ) == 1) { return false; } else { diff --git a/src/csync/csync_exclude.cpp b/src/csync/csync_exclude.cpp index 8d342b45d..f531c2d15 100644 --- a/src/csync/csync_exclude.cpp +++ b/src/csync/csync_exclude.cpp @@ -264,7 +264,7 @@ void ExcludedFiles::addManualExclude(const QString &expr) void ExcludedFiles::addManualExclude(const QString &expr, const QString &basePath) { #if defined(Q_OS_WIN) - Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == ':'); + Q_ASSERT(basePath.size() >= 2 && basePath.at(1) == QLatin1Char(':')); #else Q_ASSERT(basePath.startsWith(QLatin1Char('/'))); #endif -- 2.30.2