Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 51c0b30

Browse files
Jeff Lawcipherboy
authored andcommitted
Use reference to avoid range-loop-construct diagnostic
Pulled from scap-workbench-1.2.1-7 in Fedora Rawhide. Signed-off-by: Alexander Scheel <[email protected]>
1 parent 21d37fd commit 51c0b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void MainWindow::openFile(const QString& path, bool reload)
409409

410410
// Refill mFSWatch after opening file
411411
mFSWatch->removePaths(mFSWatch->files());
412-
for (const QString path : mScanningSession->getOriginalClosure())
412+
for (const QString &path : mScanningSession->getOriginalClosure())
413413
{
414414
mFSWatch->addPath(path);
415415
}

0 commit comments

Comments
 (0)