1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-28 14:50:08 +03:00

feature #4217: Remove cast

This commit is contained in:
Ruben S. Montero 2016-02-07 18:19:25 +01:00
parent 91c489abac
commit 333713d1df

View File

@ -67,8 +67,7 @@ public:
*/
Template * clone_template() const
{
return new Template(
*(static_cast<Template *>(obj_template)));
return new Template(obj_template);
};
Template * get_vm_template() const;
@ -249,7 +248,7 @@ private:
*
* @return 0 on success, -1 otherwise
*/
int release_network_leases(VectorAttribute const * nic);
int release_network_leases(const VectorAttribute * nic);
/**
* Returns the nic with the giver nic_id, or 0