mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Desktop: fix another variable name conflict
Addresses LGTM.com issue. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c7abca2f42
commit
4524e2b0b3
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ struct Dir {
|
|||
double progressFrom, progressTo;
|
||||
};
|
||||
|
||||
QVector<FindMovedImagesDialog::Match> FindMovedImagesDialog::learnImages(const QString &dir, int maxRecursions, QVector<QString> imagePathsIn)
|
||||
QVector<FindMovedImagesDialog::Match> FindMovedImagesDialog::learnImages(const QString &rootdir, int maxRecursions, QVector<QString> imagePathsIn)
|
||||
{
|
||||
QMap<QString, ImageMatch> matches;
|
||||
|
||||
|
@ -112,7 +112,7 @@ QVector<FindMovedImagesDialog::Match> FindMovedImagesDialog::learnImages(const Q
|
|||
|
||||
QVector<QVector<Dir>> stack; // Use a stack to recurse into directories
|
||||
stack.reserve(maxRecursions + 1);
|
||||
stack.append({ { dir, 0.0, 1.0 } });
|
||||
stack.append({ { rootdir, 0.0, 1.0 } });
|
||||
while (!stack.isEmpty()) {
|
||||
if (stack.last().isEmpty()) {
|
||||
stack.removeLast();
|
||||
|
|
Loading…
Reference in a new issue