diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-04-06 14:09:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-04-06 14:09:58 +0000 |
commit | 79aacacecf8641d01a6d61494d8be94848cec52c (patch) | |
tree | da81ed96a1ea0bb6d6000b667a63d63aacf2e092 /vsm | |
parent | e1696ca01338d1df06fa12452544c3e62ac3267c (diff) |
Use prefix increment and make return value const.
Diffstat (limited to 'vsm')
-rw-r--r-- | vsm/src/vespa/vsm/vsm/docsumfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vsm/src/vespa/vsm/vsm/docsumfilter.cpp b/vsm/src/vespa/vsm/vsm/docsumfilter.cpp index 42ab32afbf7..70759feb41c 100644 --- a/vsm/src/vespa/vsm/vsm/docsumfilter.cpp +++ b/vsm/src/vespa/vsm/vsm/docsumfilter.cpp @@ -123,7 +123,7 @@ copyPathButFirst(const FieldPath & rhs) { // skip the element that correspond to the start field value FieldPath path; if ( ! rhs.empty()) { - for (auto it = rhs.begin() + 1; it != rhs.end(); it++) { + for (auto it = rhs.begin() + 1; it != rhs.end(); ++it) { path.push_back(std::make_unique<document::FieldPathEntry>(**it)); } } |