From a5d218fd1a7e842b7ea4ac7809b0ba89856a5205 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 9 Jun 2022 17:10:32 +0200 Subject: docs: fix basic example code style --- examples/basic/src/interfaces/enemy_creator.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/basic/src/interfaces/enemy_creator.hpp') diff --git a/examples/basic/src/interfaces/enemy_creator.hpp b/examples/basic/src/interfaces/enemy_creator.hpp index 820b636..2675fea 100644 --- a/examples/basic/src/interfaces/enemy_creator.hpp +++ b/examples/basic/src/interfaces/enemy_creator.hpp @@ -4,12 +4,13 @@ #include +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IEnemyCreator { public: virtual ~IEnemyCreator() = default; - virtual std::unique_ptr create_small_enemy() noexcept = 0; + virtual auto create_small_enemy() noexcept -> std::unique_ptr = 0; - virtual std::unique_ptr create_big_enemy() noexcept = 0; + virtual auto create_big_enemy() noexcept -> std::unique_ptr = 0; }; -- cgit v1.2.3-18-g5258