Skip to content

Commit

Permalink
Merge pull request #7017 from nextcloud/bugfix/fixIncorrectQStringBui…
Browse files Browse the repository at this point in the history
…lderUsage

avoid wrong usage of QStringBuilder via auto type deduction
  • Loading branch information
mgallien authored Aug 22, 2024
2 parents bb77149 + 316af5c commit 14a5dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/proxyauthhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void ProxyAuthHandler::handleProxyAuthenticationRequired(
}

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) {
Expand Down

0 comments on commit 14a5dd1

Please sign in to comment.