From: Danny Al-Gaaf Date: Tue, 2 Apr 2013 12:39:24 +0000 (+0200) Subject: rgw/rgw_user.h: move initialization in initialization list X-Git-Tag: v0.62~102^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a5ce2461d60b862cd63cbb5b46c04fc76e1a4cfc;p=ceph.git rgw/rgw_user.h: move initialization in initialization list Move initialization of some variables from constructor body to the initialization list. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_user.h b/src/rgw/rgw_user.h index d9a17e3fa62c..8c03b592758f 100644 --- a/src/rgw/rgw_user.h +++ b/src/rgw/rgw_user.h @@ -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;