aboutsummaryrefslogtreecommitdiff
path: root/src/DI
diff options
context:
space:
mode:
Diffstat (limited to 'src/DI')
-rw-r--r--src/DI/function_wrapper.hpp2
-rw-r--r--src/DI/object_wrapper.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DI/function_wrapper.hpp b/src/DI/function_wrapper.hpp
index 716668c..f135e7f 100644
--- a/src/DI/function_wrapper.hpp
+++ b/src/DI/function_wrapper.hpp
@@ -11,7 +11,7 @@ class FunctionWrapper : public IWrapper<Interface>
public:
explicit FunctionWrapper(Interface func) noexcept;
- [[nodiscard]] Interface get() const;
+ [[nodiscard]] Interface get() const override;
private:
const Interface _func;
diff --git a/src/DI/object_wrapper.hpp b/src/DI/object_wrapper.hpp
index 19d8cdd..6fe3997 100644
--- a/src/DI/object_wrapper.hpp
+++ b/src/DI/object_wrapper.hpp
@@ -11,7 +11,7 @@ class ObjectWrapper : public IWrapper<std::shared_ptr<Interface>>
public:
explicit ObjectWrapper(const Container &container) noexcept : _container(container) {}
- [[nodiscard]] std::shared_ptr<Interface> get() const;
+ [[nodiscard]] std::shared_ptr<Interface> get() const override;
private:
const Container &_container;