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/weapon.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/basic/src/interfaces/weapon.hpp') diff --git a/examples/basic/src/interfaces/weapon.hpp b/examples/basic/src/interfaces/weapon.hpp index 7404115..78e4f42 100644 --- a/examples/basic/src/interfaces/weapon.hpp +++ b/examples/basic/src/interfaces/weapon.hpp @@ -1,9 +1,10 @@ #pragma once +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IWeapon { public: virtual ~IWeapon() noexcept = default; - virtual int get_strength() const noexcept = 0; + [[nodiscard]] virtual auto get_strength() const noexcept -> int = 0; }; -- cgit v1.2.3-18-g5258