Skip to content

Commit 6d51cc1

Browse files
committed
refactor(syncengine): const-qualify unmodified function parameters
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent c18bd3c commit 6d51cc1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/libsync/syncengine.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void SyncEngine::deleteStaleUploadInfos(const SyncFileItemVector &syncItems)
241241

242242
// Delete the stales chunk on the server.
243243
if (account()->capabilities().chunkingNg()) {
244-
for (uint transferId : std::as_const(ids)) {
244+
for (const uint transferId : std::as_const(ids)) {
245245
if (!transferId)
246246
continue; // Was not a chunked upload
247247
QUrl url = Utility::concatUrlPath(account()->url(), QLatin1String("remote.php/dav/uploads/") + account()->davUser() + QLatin1Char('/') + QString::number(transferId));
@@ -714,7 +714,7 @@ void SyncEngine::startSync()
714714
connect(_discoveryPhase.get(), &DiscoveryPhase::itemDiscovered, this, &SyncEngine::slotItemDiscovered);
715715
connect(_discoveryPhase.get(), &DiscoveryPhase::newBigFolder, this, &SyncEngine::newBigFolder);
716716
connect(_discoveryPhase.get(), &DiscoveryPhase::existingFolderNowBig, this, &SyncEngine::existingFolderNowBig);
717-
connect(_discoveryPhase.get(), &DiscoveryPhase::fatalError, this, [this](const QString &errorString, ErrorCategory errorCategory) {
717+
connect(_discoveryPhase.get(), &DiscoveryPhase::fatalError, this, [this](const QString &errorString, const ErrorCategory errorCategory) {
718718
Q_EMIT syncError(errorString, errorCategory);
719719
finalize(false);
720720
});
@@ -930,7 +930,7 @@ void SyncEngine::slotItemCompleted(const SyncFileItemPtr &item, const ErrorCateg
930930
detectFileLock(item);
931931
}
932932

933-
void SyncEngine::slotPropagationFinished(OCC::SyncFileItem::Status status)
933+
void SyncEngine::slotPropagationFinished(const OCC::SyncFileItem::Status status)
934934
{
935935
if (_propagator->_anotherSyncNeeded && _anotherSyncNeeded == NoFollowUpSync) {
936936
_anotherSyncNeeded = ImmediateFollowUp;
@@ -1045,7 +1045,7 @@ void SyncEngine::restoreOldFiles(SyncFileItemVector &syncItems)
10451045
}
10461046
}
10471047

1048-
void SyncEngine::cancelSyncOrContinue(bool cancel)
1048+
void SyncEngine::cancelSyncOrContinue(const bool cancel)
10491049
{
10501050
if (cancel) {
10511051
qCInfo(lcEngine) << "User aborted sync";
@@ -1353,7 +1353,7 @@ const SyncEngine::SingleItemDiscoveryOptions &SyncEngine::singleItemDiscoveryOpt
13531353
return _singleItemDiscoveryOptions;
13541354
}
13551355

1356-
void SyncEngine::setFilesystemPermissionsReliable(bool reliable)
1356+
void SyncEngine::setFilesystemPermissionsReliable(const bool reliable)
13571357
{
13581358
_filesystemPermissionsReliable = reliable;
13591359
}

0 commit comments

Comments
 (0)