]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_rgw_admin_opstate.cc: prefer prefix ++operator for non-trivial iterator
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 12:18:46 +0000 (14:18 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 12 Jul 2013 12:18:46 +0000 (14:18 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/test_rgw_admin_opstate.cc

index 0ab5780a417f7ff95121468c80faddaa687dc5ef..cfd709043dd60065c3c2967aa66942f01761caa1 100644 (file)
@@ -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;