From ad2ccc8888d424443fa688dcf1fa5550c9955f7a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Aug 2024 22:31:29 +0200 Subject: [PATCH] core: add move constructor/copy assignment to weight and cylinder Make Coverity happy (shrug). Signed-off-by: Berthold Stoeger --- core/equipment.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/equipment.h b/core/equipment.h index 37c2406c2..716809b54 100644 --- a/core/equipment.h +++ b/core/equipment.h @@ -35,6 +35,10 @@ struct cylinder_t cylinder_t(); ~cylinder_t(); + cylinder_t(const cylinder_t &) = default; + cylinder_t(cylinder_t &&) = default; + cylinder_t &operator=(const cylinder_t &) = default; + cylinder_t &operator=(cylinder_t &&) = default; volume_t gas_volume(pressure_t p) const; /* Volume of a cylinder at pressure 'p' */ }; @@ -64,6 +68,10 @@ struct weightsystem_t weightsystem_t(); weightsystem_t(weight_t w, std::string desc, bool auto_filled); ~weightsystem_t(); + weightsystem_t(const weightsystem_t &) = default; + weightsystem_t(weightsystem_t &&) = default; + weightsystem_t &operator=(const weightsystem_t &) = default; + weightsystem_t &operator=(weightsystem_t &&) = default; bool operator==(const weightsystem_t &w2) const; };