From 6236c8fd6865fa446178765cc225ec5ae63faa2d Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 18 Mar 2026 21:24:35 +0300 Subject: [PATCH] added nodiscard --- include/omath/rev_eng/internal_rev_object.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp index 34dffde..d8eac41 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -117,6 +117,7 @@ namespace omath::rev_eng } private: + [[nodiscard]] static const void* resolve_pattern(const std::string_view module_name, const std::string_view pattern) { const auto* base = get_module_base(module_name); @@ -133,6 +134,7 @@ namespace omath::rev_eng return reinterpret_cast(*result); } + [[nodiscard]] static const void* get_module_base(const std::string_view module_name) { #ifdef _WIN32