mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
- if possible use vector<unique_ptr<Attribute>> as argument for Template::remove for automatic cleanup - if possible use 'VectorAttributeinstead ofAttributeforTemplate::remove- theremovemethod has dynamic cast to correct type and deletes attributes, which can't be casted. So no need to add loop with casting after theremove` method - At few places added checks for empty vector to avoid very rare crashes on malformed Templates