Skip to content

Commit

Permalink
ci suggestions.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Nov 28, 2023
1 parent 95b2abf commit 85dc38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/libsync/clientstatusreporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ QByteArray ClientStatusReporting::getStatusNamesHash() const
query.bindValue(QStringLiteral(":key"), statusNamesHash);
if (!prepareResult || !query.exec()) {
qCDebug(lcClientStatusReporting) << "Could not get status names hash. No such record:" << statusNamesHash;
return 0;
return {};
}
if (!query.next()) {
qCDebug(lcClientStatusReporting) << "Could not get status names hash:" << query.lastError().text();
return 0;
return {};
}
return query.value(query.record().indexOf(QStringLiteral("value"))).toByteArray();
}
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/clientstatusreporting.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class OWNCLOUDSYNC_EXPORT ClientStatusReporting : public QObject
};

explicit ClientStatusReporting(Account *account, QObject *parent = nullptr);
~ClientStatusReporting();
~ClientStatusReporting() override;

static QByteArray statusStringFromNumber(const Status status);

Expand Down

0 comments on commit 85dc38a

Please sign in to comment.