From: Kevin Ottens Date: Mon, 30 Nov 2020 11:47:17 +0000 (+0100) Subject: Repair the Windows Build X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~50 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2cf76bbcbf6016590032b352d754b744aca0018c;p=nextcloud-desktop.git 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 --- 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