From d610ba376206577135c9f3a3e6cd7965ea97055a Mon Sep 17 00:00:00 2001 From: Pcornat Date: Fri, 6 Feb 2026 13:34:35 +0100 Subject: [PATCH] Adding nodiscard for erase --- include/billy_objects.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/billy_objects.hpp b/include/billy_objects.hpp index db4289a..2dd3371 100644 --- a/include/billy_objects.hpp +++ b/include/billy_objects.hpp @@ -55,7 +55,7 @@ namespace character { [[nodiscard]] bool insert_object(CharacterSheet &sheet, const billyEnums objType) noexcept; - bool erase_object(CharacterSheet &sheet, const billyEnums objToErase) noexcept; + [[nodiscard]] bool erase_object(CharacterSheet &sheet, const billyEnums objToErase) noexcept; [[nodiscard]] const std::plus &get_plus_operation() const { return plus; }