]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_user.h: move initialization in initialization list
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 12:39:24 +0000 (14:39 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Apr 2013 12:39:24 +0000 (14:39 +0200)
Move initialization of some variables from constructor body to
the initialization list.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_user.h

index d9a17e3fa62c112e30e8ec20ce4042bd0e8ee81e..8c03b592758ff8e4fe50948d51ac7f287f59ae5e 100644 (file)
@@ -364,14 +364,8 @@ struct RGWUserAdminOpState {
     return generated_subuser;
   }
 
-  RGWUserAdminOpState()
+  RGWUserAdminOpState() : user_id(RGW_USER_ANON_ID), user_email(""), display_name(""), id(""), key ("")
   {
-    user_id = RGW_USER_ANON_ID;
-    display_name = "";
-    user_email = "";
-    id = "";
-    key = "";
-
     max_buckets = RGW_DEFAULT_MAX_BUCKETS;
     key_type = -1;
     perm_mask = 0;