From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 14:05:58 +0000 (+0200) Subject: rgw/rgw_cors_swift.h: prefer prefix ++operator for iterator X-Git-Tag: v0.62~102^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4839cf2a21c9ce365389e8f21d1844e6ab9ce3b1;p=ceph.git rgw/rgw_cors_swift.h: prefer prefix ++operator for iterator Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_cors_swift.h b/src/rgw/rgw_cors_swift.h index d40a0cc30ea1..8037b4f51129 100644 --- a/src/rgw/rgw_cors_swift.h +++ b/src/rgw/rgw_cors_swift.h @@ -42,7 +42,7 @@ class RGWCORSConfiguration_SWIFT : public RGWCORSConfiguration get_str_set(ao, oc); if (oc.empty()) return -EINVAL; - for(set::iterator it = oc.begin(); it != oc.end(); it++) { + for(set::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::iterator it = h.begin(); - it != h.end(); it++) { + it != h.end(); ++it) { string s = (*it); if (validate_name_string(s) != 0) return -EINVAL;