From d2552ba4395e46690b382fb1142736fe00acb7f2 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Sat, 1 Oct 2022 11:53:12 +0200 Subject: [PATCH] Use auto where possible Signed-off-by: Claudio Cambra --- src/gui/filedetails/sharemodel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/filedetails/sharemodel.cpp b/src/gui/filedetails/sharemodel.cpp index 7eb3c0c0a..9814e3c23 100644 --- a/src/gui/filedetails/sharemodel.cpp +++ b/src/gui/filedetails/sharemodel.cpp @@ -232,7 +232,7 @@ void ShareModel::updateData() _sharePath = _folder->remotePathTrailingSlash() + relPath; SyncJournalFileRecord fileRecord; - bool resharingAllowed = true; // lets assume the good + auto resharingAllowed = true; // lets assume the good if(_folder->journalDb()->getFileRecord(relPath, &fileRecord) && fileRecord.isValid()) { if (!fileRecord._remotePerm.isNull() && @@ -495,10 +495,10 @@ QString ShareModel::iconUrlForShare(const SharePtr &share) const QString ShareModel::avatarUrlForShare(const SharePtr &share) const { if (share->getShareWith() && share->getShareWith()->type() == Sharee::User && _accountState && _accountState->account()) { - const QString provider = QStringLiteral("image://tray-image-provider/"); - const QString userId = share->getShareWith()->shareWith(); - const QString avatarUrl = Utility::concatUrlPath(_accountState->account()->url(), - QString("remote.php/dav/avatars/%1/%2.png").arg(userId, QString::number(64))).toString(); + const auto provider = QStringLiteral("image://tray-image-provider/"); + const auto userId = share->getShareWith()->shareWith(); + const auto avatarUrl = Utility::concatUrlPath(_accountState->account()->url(), + QString("remote.php/dav/avatars/%1/%2.png").arg(userId, QString::number(64))).toString(); return QString(provider + avatarUrl); } -- 2.39.5