Adding noexcept for constructors of billyObjects
This commit is contained in:
parent
9ba06c686f
commit
5a14994645
1 changed files with 4 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ namespace character {
|
||||||
public:
|
public:
|
||||||
const weapons type{ weapons::Sword };
|
const weapons type{ weapons::Sword };
|
||||||
|
|
||||||
explicit Weapons(const weapons type) : type(type) {}
|
explicit Weapons(const weapons type) noexcept : type(type) {}
|
||||||
|
|
||||||
Weapons() = delete;
|
Weapons() = delete;
|
||||||
|
|
||||||
|
|
@ -101,7 +101,7 @@ namespace character {
|
||||||
public:
|
public:
|
||||||
const equipments type{ equipments::Chainmail };
|
const equipments type{ equipments::Chainmail };
|
||||||
|
|
||||||
explicit Equipments(const equipments type) : type(type) {}
|
explicit Equipments(const equipments type) noexcept : type(type) {}
|
||||||
|
|
||||||
Equipments() = delete;
|
Equipments() = delete;
|
||||||
|
|
||||||
|
|
@ -124,7 +124,7 @@ namespace character {
|
||||||
public:
|
public:
|
||||||
const tools type{ tools::Fourche };
|
const tools type{ tools::Fourche };
|
||||||
|
|
||||||
explicit Tools(const tools type) : type(type) {}
|
explicit Tools(const tools type) noexcept : type(type) {}
|
||||||
|
|
||||||
Tools() = delete;
|
Tools() = delete;
|
||||||
|
|
||||||
|
|
@ -144,4 +144,4 @@ namespace character {
|
||||||
};
|
};
|
||||||
} // character
|
} // character
|
||||||
|
|
||||||
#endif //BILLYSHEET_GENERIC_OBJECT_HPP
|
#endif //BILLYSHEET_GENERIC_OBJECT_HPP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue