From 128a33548badc3cdc1b5658e31115d4a4db95135 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 16 Jan 2019 14:47:24 +0100 Subject: Fix warning: "Missing reference in range-for with non trivial type" [-Wclazy-range-loop] Change-Id: I5dcb263c754d423740e7bce3dcb948d52f2dec67 Reviewed-by: Orgad Shaneh --- src/plugins/git/gitgrep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/git/gitgrep.cpp') diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index 41f35ea4a8..9d21655237 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -134,7 +134,7 @@ public: } single.matchingLine = text; - for (auto match : qAsConst(matches)) { + for (const auto &match : qAsConst(matches)) { single.matchStart = match.matchStart; single.matchLength = match.matchLength; single.regexpCapturedTexts = match.regexpCapturedTexts; -- cgit v1.2.1