diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-12 14:18:46 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-12 14:18:46 +0200 |
commit | 88ba6515911f47e13f1941b8797974589bd7e9d8 (patch) | |
tree | 19b975513a4b32b82a646388374ee58f1e837bd7 | |
parent | 028f6437fe21b46922365cdbccc7c8df9d43b05d (diff) | |
download | ceph-88ba6515911f47e13f1941b8797974589bd7e9d8.tar.gz |
test_rgw_admin_opstate.cc: prefer prefix ++operator for non-trivial iterator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/test/test_rgw_admin_opstate.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_rgw_admin_opstate.cc b/src/test/test_rgw_admin_opstate.cc index 0ab5780a417..cfd709043dd 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<string>::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<string>::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<string, RGWAccessKey>::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<cls_statelog_entry> &entries) { l = parser.get_array_elements(); int loop = 0; for(vector<string>::iterator it = l.begin(); - it != l.end(); it++, loop++) { + it != l.end(); ++it, loop++) { JSONParser jp; cls_statelog_entry entry; |