diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 3aad88a0f8078..5c7620c6a7fa0 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1481,7 +1481,7 @@ void Folder::warnOnNewExcludedItem(const SyncJournalFileRecord &record, const QS // Note: This assumes we're getting file watcher notifications // for folders only on creation and deletion - if we got a notification // on content change that would create spurious warnings. - const auto fullPath = _canonicalLocalPath + path; + const auto fullPath = QString{_canonicalLocalPath + path}; QFileInfo fi(fullPath); if (!FileSystem::fileExists(fullPath)) return; diff --git a/src/gui/proxyauthhandler.cpp b/src/gui/proxyauthhandler.cpp index 13228e2d5bdf9..360f0dec46450 100644 --- a/src/gui/proxyauthhandler.cpp +++ b/src/gui/proxyauthhandler.cpp @@ -58,7 +58,7 @@ void ProxyAuthHandler::handleProxyAuthenticationRequired( } const auto account = qobject_cast(sender()); - const auto key = proxy.hostName() + QLatin1Char(':') + QString::number(proxy.port()); + const auto key = QString{proxy.hostName() + QLatin1Char(':') + QString::number(proxy.port())}; // If the proxy server has changed, forget what we know. if (key != _proxy) {