aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/hero.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/hero.hpp')
-rw-r--r--examples/basic/src/hero.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic/src/hero.hpp b/examples/basic/src/hero.hpp
index e4959d2..e310817 100644
--- a/examples/basic/src/hero.hpp
+++ b/examples/basic/src/hero.hpp
@@ -10,7 +10,7 @@
class Hero : public IHero, public yacppdic::AutoWirable<IHero, Hero, IWeapon>
{
public:
- Hero(std::shared_ptr<IWeapon> weapon) noexcept;
+ explicit Hero(std::shared_ptr<IWeapon> weapon) noexcept;
void fight(IEnemy &enemy) noexcept override;