aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitgrep.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-04-08 23:40:00 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-04-09 09:04:00 +0000
commit7d3a79c696a966877b5bde32730b70310d34afdc (patch)
treed0f07bb5acabbafc58ba9bb5890a9802fb0f3769 /src/plugins/git/gitgrep.cpp
parent11336fb60458c62f41077318d119910cf1b193a4 (diff)
Utils: Purge asConst
Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/git/gitgrep.cpp')
-rw-r--r--src/plugins/git/gitgrep.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp
index 6854df7e469..0940c94036c 100644
--- a/src/plugins/git/gitgrep.cpp
+++ b/src/plugins/git/gitgrep.cpp
@@ -36,7 +36,6 @@
#include <vcsbase/vcsbaseconstants.h>
#include <utils/algorithm.h>
-#include <utils/asconst.h>
#include <utils/fancylineedit.h>
#include <utils/filesearch.h>
#include <utils/fileutils.h>
@@ -121,7 +120,7 @@ public:
QRegularExpressionMatch regexpMatch = regexp.match(line);
single.regexpCapturedTexts = regexpMatch.capturedTexts();
}
- for (auto match : Utils::asConst(matches)) {
+ for (auto match : qAsConst(matches)) {
single.matchStart = match.first;
single.matchLength = match.second;
resultList->append(single);