detected via https://github.com/KDE/clazy/blob/master/docs/checks/README-auto-unexpected-qstringbuilder.md#auto-unexpected-qstringbuilder
also reported by g++ via compile time warnings
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
// 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;
}
const auto account = qobject_cast<Account *>(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) {