summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-24 09:02:03 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-15 16:57:54 +0000
commita0c61e70eeefbf9d6c632a94d29bcc2a7e97b7d7 (patch)
tree10ae236ef25cc2284377ab7bf29a315ad6a7444c /src/plugins
parent9d8ad8027a34de6871f753047a160b3b3ec65368 (diff)
downloadqbs-a0c61e70eeefbf9d6c632a94d29bcc2a7e97b7d7.tar.gz
STL compatibility: use size() instead of count()
This is a simple find and replace with manual sanity check. Change-Id: Ia733befe7885dc3c643d5c84e151312bfd86a3c6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/scanner/cpp/cppscanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scanner/cpp/cppscanner.cpp b/src/plugins/scanner/cpp/cppscanner.cpp
index a29b00e78..9e7b3c690 100644
--- a/src/plugins/scanner/cpp/cppscanner.cpp
+++ b/src/plugins/scanner/cpp/cppscanner.cpp
@@ -262,7 +262,7 @@ static void closeScanner(void *ptr)
static const char *next(void *opaq, int *size, int *flags)
{
Opaq *opaque = static_cast<Opaq*>(opaq);
- if (opaque->currentResultIndex < opaque->includedFiles.count()) {
+ if (opaque->currentResultIndex < opaque->includedFiles.size()) {
const ScanResult &result = opaque->includedFiles.at(opaque->currentResultIndex);
++opaque->currentResultIndex;
*size = result.size;