From 88ba6515911f47e13f1941b8797974589bd7e9d8 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 12 Jul 2013 14:18:46 +0200 Subject: [PATCH] test_rgw_admin_opstate.cc: prefer prefix ++operator for non-trivial iterator Signed-off-by: Danny Al-Gaaf --- src/test/test_rgw_admin_opstate.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/test_rgw_admin_opstate.cc b/src/test/test_rgw_admin_opstate.cc index 0ab5780a417f7..cfd709043dd60 100644 --- a/src/test/test_rgw_admin_opstate.cc +++ b/src/test/test_rgw_admin_opstate.cc @@ -283,7 +283,7 @@ int test_helper::send_request(string method, string res, slist = curl_slist_append(slist, auth.c_str()); slist = curl_slist_append(slist, http_date.c_str()); for(list::iterator it = extra_hdrs.begin(); - it != extra_hdrs.end(); it++){ + it != extra_hdrs.end(); ++it){ slist = curl_slist_append(slist, (*it).c_str()); } if(read_function) @@ -321,7 +321,7 @@ int run_rgw_admin(string& cmd, string& resp) { argv[0] = (char *)"radosgw-admin"; for (list::iterator it = l.begin(); - it != l.end(); it++) { + it != l.end(); ++it) { argv[loop++] = (char *)(*it).c_str(); } argv[loop] = NULL; @@ -373,7 +373,7 @@ int get_creds(string& json, string& creds) { decode_json_obj(info, &parser); creds = ""; for(map::iterator it = info.access_keys.begin(); - it != info.access_keys.end(); it++) { + it != info.access_keys.end(); ++it) { RGWAccessKey _k = it->second; /*cout << "accesskeys [ " << it->first << " ] = " << "{ " << _k.id << ", " << _k.key << ", " << _k.subuser << "}" << std::endl;*/ @@ -504,7 +504,7 @@ static int get_opstate_list(list &entries) { l = parser.get_array_elements(); int loop = 0; for(vector::iterator it = l.begin(); - it != l.end(); it++, loop++) { + it != l.end(); ++it, loop++) { JSONParser jp; cls_statelog_entry entry; -- 2.39.5