From ecf83f9eef7d92f09955c62a9bcddcda32a6d0f2 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 31 Jan 2017 17:19:10 +0100 Subject: [PATCH] rgw/rgw_common.cc: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_common.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index e80f64ecc6ae..19c55b31131d 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -1491,15 +1491,15 @@ static int match_internal(boost::string_ref pattern, boost::string_ref input, in if (*it1 == '*' && (it1 + 1) == pattern.end() && it2 == input.end()) return 0; if (function(*it1, *it2) || *it1 == '?') { - it1++; - it2++; + ++it1; + ++it2; continue; } if (*it1 == '*') { if (function(*(it1 + 1), *it2)) - it1++; + ++it1; else - it2++; + ++it2; continue; } return 0; @@ -1550,4 +1550,4 @@ int match(const string& pattern, const string& input, int flag) last_pos_pattern = cur_pos_pattern + 1; last_pos_input = cur_pos_input + 1; } -} \ No newline at end of file +} -- 2.47.3