From: Claudio Cambra Date: Sat, 1 Oct 2022 09:53:12 +0000 (+0200) Subject: Use auto where possible X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~169^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2552ba4395e46690b382fb1142736fe00acb7f2;p=nextcloud-desktop.git Use auto where possible Signed-off-by: Claudio Cambra --- 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); }