Skip to content

Commit

Permalink
Fix code smells
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
  • Loading branch information
claucambra committed Jan 25, 2022
1 parent c6b70c6 commit 10a2b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/tray/activitylistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void ActivityListModel::ingestActivities(const QJsonArray activities)
for (const auto activ : activities) {
auto json = activ.toObject();

Activity a = Activity::fromActivityJson(json, _accountState->account()->displayName());
const Activity a = Activity::fromActivityJson(json, _accountState->account()->displayName());

list.append(a);
_currentItem = list.last()._id;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ bool User::isUnsolvableConflict(const SyncFileItemPtr &item) const

void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr &item)
{
Activity activity = Activity::fromSyncFileItemPtr(item, account(), folder);
const Activity activity = Activity::fromSyncFileItemPtr(item, account(), folder);

const auto fileName = QFileInfo(item->_originalFile).fileName();

Expand Down

0 comments on commit 10a2b60

Please sign in to comment.