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 <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-04-02 14:39:24 +02:00
parent 9b5f8a4f9d
commit a5ce2461d6

View 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;