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 <kevin.ottens@nextcloud.com>
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 {
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