From: Danny Al-Gaaf Date: Tue, 31 Jan 2017 16:19:10 +0000 (+0100) Subject: rgw/rgw_common.cc: prefer ++operator for non-primitive iterators X-Git-Tag: v12.0.1~462^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ecf83f9eef7d92f09955c62a9bcddcda32a6d0f2;p=ceph.git rgw/rgw_common.cc: prefer ++operator for non-primitive iterators Signed-off-by: Danny Al-Gaaf --- 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 +}