forked from qt-creator/qt-creator
ClearCase: Remove pointless function argument
Change-Id: I5545090a5f28994b126cedd97496678d891f5184 Coverity-Id: 1568460 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
15903ad17a
commit
b004a78645
@@ -118,10 +118,9 @@ void ClearCaseSync::processCleartoolLsLine(const QDir &viewRootDir, const QStrin
|
|||||||
ClearCasePlugin::setStatus(absFile, FileStatus::CheckedIn, true);
|
ClearCasePlugin::setStatus(absFile, FileStatus::CheckedIn, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearCaseSync::updateTotalFilesCount(const Key &view, ClearCaseSettings settings,
|
void ClearCaseSync::updateTotalFilesCount(const Key &view, const int processed)
|
||||||
const int processed)
|
|
||||||
{
|
{
|
||||||
settings = ClearCasePlugin::settings(); // Might have changed while task was running
|
ClearCaseSettings settings = ClearCasePlugin::settings();
|
||||||
settings.totalFiles[view] = processed;
|
settings.totalFiles[view] = processed;
|
||||||
ClearCasePlugin::setSettings(settings);
|
ClearCasePlugin::setSettings(settings);
|
||||||
}
|
}
|
||||||
@@ -180,7 +179,7 @@ void ClearCaseSync::syncSnapshotView(QPromise<void> &promise, QStringList &files
|
|||||||
updateStatusForNotManagedFiles(files);
|
updateStatusForNotManagedFiles(files);
|
||||||
promise.setProgressValue(totalFileCount + 1);
|
promise.setProgressValue(totalFileCount + 1);
|
||||||
if (!hot)
|
if (!hot)
|
||||||
updateTotalFilesCount(view, settings, totalProcessed);
|
updateTotalFilesCount(view, totalProcessed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,7 @@ public:
|
|||||||
void invalidateStatus(const QDir &viewRootDir, const QStringList &files);
|
void invalidateStatus(const QDir &viewRootDir, const QStringList &files);
|
||||||
void invalidateStatusAllFiles();
|
void invalidateStatusAllFiles();
|
||||||
void processCleartoolLsLine(const QDir &viewRootDir, const QString &buffer);
|
void processCleartoolLsLine(const QDir &viewRootDir, const QString &buffer);
|
||||||
void updateTotalFilesCount(const Utils::Key &view, ClearCaseSettings settings,
|
void updateTotalFilesCount(const Utils::Key &view, const int processed);
|
||||||
const int processed);
|
|
||||||
void updateStatusForNotManagedFiles(const QStringList &files);
|
void updateStatusForNotManagedFiles(const QStringList &files);
|
||||||
|
|
||||||
void syncDynamicView(QPromise<void> &promise, const ClearCaseSettings &settings);
|
void syncDynamicView(QPromise<void> &promise, const ClearCaseSettings &settings);
|
||||||
|
|||||||
Reference in New Issue
Block a user