Mass: make the constructor explicit.
Implicit initialisation from a std::string could be dangerous, so, let's avoid that.
This commit is contained in:
parent
e9d509fd36
commit
a91546d8a5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ enum class MassState : std::uint8_t {
|
|||
|
||||
class Mass {
|
||||
public:
|
||||
Mass(const std::string& filename);
|
||||
explicit Mass(const std::string& filename);
|
||||
|
||||
Mass(const Mass&) = delete;
|
||||
Mass& operator=(const Mass&) = delete;
|
||||
|
|
Loading…
Reference in a new issue