]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_cors_swift.h: prefer prefix ++operator for iterator
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 14:05:58 +0000 (16:05 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 14:05:58 +0000 (16:05 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_cors_swift.h

index d40a0cc30ea1bfdaec0889f2516c09ccc3d0830c..8037b4f51129fdd0d29c32f5846771396c17963c 100644 (file)
@@ -42,7 +42,7 @@ class RGWCORSConfiguration_SWIFT : public RGWCORSConfiguration
       get_str_set(ao, oc);
       if (oc.empty())
         return -EINVAL;
-      for(set<string>::iterator it = oc.begin(); it != oc.end(); it++) {
+      for(set<string>::iterator it = oc.begin(); it != oc.end(); ++it) {
         string host = *it;
         if (validate_name_string(host) != 0)
           return -EINVAL;
@@ -52,7 +52,7 @@ class RGWCORSConfiguration_SWIFT : public RGWCORSConfiguration
         string ah = allow_headers;
         get_str_set(ah, h);
         for(set<string>::iterator it = h.begin();
-            it != h.end(); it++) {
+            it != h.end(); ++it) {
           string s = (*it);
           if (validate_name_string(s) != 0)
             return -EINVAL;