From f4d812a5b9131e65bb55db7211dc68fc453792df Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 5 Mar 2022 13:32:35 +0100 Subject: refactor: make small improvements --- src/DI/function_wrapper.hpp | 2 +- src/DI/object_wrapper.hpp | 2 +- src/argument_parser.cpp | 2 +- 3 files changed, 3 insertions(+), 3 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 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> public: explicit ObjectWrapper(const Container &container) noexcept : _container(container) {} - [[nodiscard]] std::shared_ptr get() const; + [[nodiscard]] std::shared_ptr get() const override; private: const Container &_container; diff --git a/src/argument_parser.cpp b/src/argument_parser.cpp index b5f14bc..5ad23d7 100644 --- a/src/argument_parser.cpp +++ b/src/argument_parser.cpp @@ -45,7 +45,7 @@ unsigned int get_uint_optarg(char arg, bool check_zero = false) ArgumentParser::ArgumentParser( IRandomNumberGeneratorFactory random_number_generator_factory) - : _random_number_generator_factory(std::move(random_number_generator_factory)) + : _random_number_generator_factory(random_number_generator_factory) { } -- cgit v1.2.3-18-g5258