]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 31 Jan 2017 16:19:10 +0000 (17:19 +0100)
committerSage Weil <sage@redhat.com>
Thu, 9 Feb 2017 02:54:25 +0000 (21:54 -0500)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_common.cc

index e80f64ecc6aefe49cf54c5f06acd9a15db3be05a..19c55b31131dbfbe21cfa2ff909543761ea403e0 100644 (file)
@@ -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
+}