core: add move constructor/copy assignment to weight and cylinder

Make Coverity happy (shrug).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-08-13 22:31:29 +02:00 committed by Michael Keller
parent 1fc5a294a6
commit ad2ccc8888

View file

@ -35,6 +35,10 @@ struct cylinder_t
cylinder_t(); 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' */ 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();
weightsystem_t(weight_t w, std::string desc, bool auto_filled); weightsystem_t(weight_t w, std::string desc, bool auto_filled);
~weightsystem_t(); ~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; bool operator==(const weightsystem_t &w2) const;
}; };