Selaa lähdekoodia

Make execute method of ConditionalFunctionExecutor const

Patrick-Christopher Mattulat 1 vuosi sitten
vanhempi
commit
58f2e7c69f

+ 2 - 2
include/ls-std/core/ConditionalFunctionExecutor.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-13
-* Changed:         2023-02-13
+* Changed:         2023-02-21
 *
 * */
 
@@ -22,7 +22,7 @@ namespace ls::std::core
       explicit ConditionalFunctionExecutor(bool _condition);
       ~ConditionalFunctionExecutor();
 
-      void execute(const ::std::function<void()> &_function);
+      void execute(const ::std::function<void()> &_function) const;
 
     private:
 

+ 2 - 2
source/ls-std/core/ConditionalFunctionExecutor.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-13
-* Changed:         2023-02-13
+* Changed:         2023-02-21
 *
 * */
 
@@ -14,7 +14,7 @@ ls::std::core::ConditionalFunctionExecutor::ConditionalFunctionExecutor(bool _co
 
 ls::std::core::ConditionalFunctionExecutor::~ConditionalFunctionExecutor() = default;
 
-void ls::std::core::ConditionalFunctionExecutor::execute(const ::std::function<void()> &_function)
+void ls::std::core::ConditionalFunctionExecutor::execute(const ::std::function<void()> &_function) const
 {
   if (this->condition)
   {