]> git.stg.codes - stg.git/commitdiff
Remove useles cast.
authorMaksym Mamontov <madf@madf.info>
Mon, 11 May 2020 09:59:27 +0000 (12:59 +0300)
committerMaksym Mamontov <madf@madf.info>
Mon, 11 May 2020 09:59:27 +0000 (12:59 +0300)
stargazer/plugins/configuration/rpcconfig/admins_methods.cpp

index a6ed8f1a314e30d23df4114ecbe0fef8a20cf55e..670f6789ef83e8e17ec7994926042f7bb55a3c67 100644 (file)
@@ -165,9 +165,7 @@ conf.priv = *admin->GetPriv();
 conf.password = admin->GetPassword();
 conf.login = login;
 
-std::map<std::string, xmlrpc_c::value> structVal(
-    static_cast<std::map<std::string, xmlrpc_c::value> >(xmlrpc_c::value_struct(info))
-    );
+std::map<std::string, xmlrpc_c::value> structVal = info;
 
 std::map<std::string, xmlrpc_c::value>::iterator it;