mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
1fc5a294a6
commit
ad2ccc8888
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue