Browse Source

Add noexcept keyword to destructors of core module

Patrick-Christopher Mattulat 1 year ago
parent
commit
6abd6b9615
29 changed files with 35 additions and 35 deletions
  1. 2 2
      include/ls-std/core/Version.hpp
  2. 1 1
      include/ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp
  3. 1 1
      include/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.hpp
  4. 1 1
      include/ls-std/core/evaluator/NullPointerArgumentEvaluator.hpp
  5. 1 1
      include/ls-std/core/evaluator/NullPointerEvaluator.hpp
  6. 1 1
      include/ls-std/core/exception/EventNotHandledException.hpp
  7. 1 1
      include/ls-std/core/exception/EventNotSubscribedException.hpp
  8. 1 1
      include/ls-std/core/exception/Exception.hpp
  9. 1 1
      include/ls-std/core/exception/FileNotFoundException.hpp
  10. 1 1
      include/ls-std/core/exception/FileOperationException.hpp
  11. 1 1
      include/ls-std/core/exception/IllegalArgumentException.hpp
  12. 1 1
      include/ls-std/core/exception/IllegalArithmeticOperationException.hpp
  13. 1 1
      include/ls-std/core/exception/IncompleteJsonException.hpp
  14. 1 1
      include/ls-std/core/exception/IndexOutOfBoundsException.hpp
  15. 1 1
      include/ls-std/core/exception/NullPointerException.hpp
  16. 2 2
      source/ls-std/core/Version.cpp
  17. 2 2
      source/ls-std/core/evaluator/EmptyStringArgumentEvaluator.cpp
  18. 2 2
      source/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.cpp
  19. 2 2
      source/ls-std/core/evaluator/NullPointerArgumentEvaluator.cpp
  20. 1 1
      source/ls-std/core/exception/EventNotHandledException.cpp
  21. 1 1
      source/ls-std/core/exception/EventNotSubscribedException.cpp
  22. 2 2
      source/ls-std/core/exception/Exception.cpp
  23. 1 1
      source/ls-std/core/exception/FileNotFoundException.cpp
  24. 1 1
      source/ls-std/core/exception/FileOperationException.cpp
  25. 1 1
      source/ls-std/core/exception/IllegalArgumentException.cpp
  26. 1 1
      source/ls-std/core/exception/IllegalArithmeticOperationException.cpp
  27. 1 1
      source/ls-std/core/exception/IncompleteJsonException.cpp
  28. 1 1
      source/ls-std/core/exception/IndexOutOfBoundsException.cpp
  29. 1 1
      source/ls-std/core/exception/NullPointerException.cpp

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-27
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -22,7 +22,7 @@ namespace ls::std::core
     public:
 
       explicit Version(ls::std::core::type::version_type _majorVersion, ls::std::core::type::version_type _minorVersion, ls::std::core::type::version_type _patchVersion);
-      ~Version() override;
+      ~Version() noexcept override;
 
       // implementation
 

+ 1 - 1
include/ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       explicit EmptyStringArgumentEvaluator(::std::string _argument);
       explicit EmptyStringArgumentEvaluator(::std::string _argument, ::std::string _message);
-      ~EmptyStringArgumentEvaluator() override;
+      ~EmptyStringArgumentEvaluator() noexcept override;
 
       void evaluate() override;
 

+ 1 - 1
include/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       explicit IndexOutOfBoundsEvaluator(size_t _index, size_t _size);
       explicit IndexOutOfBoundsEvaluator(size_t _index, size_t _size, ::std::string _message);
-      ~IndexOutOfBoundsEvaluator() override;
+      ~IndexOutOfBoundsEvaluator() noexcept override;
 
       void evaluate() override;
 

+ 1 - 1
include/ls-std/core/evaluator/NullPointerArgumentEvaluator.hpp

@@ -23,7 +23,7 @@ namespace ls::std::core
 
       explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument);
       explicit NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message);
-      ~NullPointerArgumentEvaluator() override;
+      ~NullPointerArgumentEvaluator() noexcept override;
 
       void evaluate() override;
 

+ 1 - 1
include/ls-std/core/evaluator/NullPointerEvaluator.hpp

@@ -23,7 +23,7 @@ namespace ls::std::core
 
       explicit NullPointerEvaluator(const ::std::shared_ptr<void> &_argument);
       explicit NullPointerEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message);
-      ~NullPointerEvaluator() override;
+      ~NullPointerEvaluator() noexcept override;
 
       void evaluate() override;
 

+ 1 - 1
include/ls-std/core/exception/EventNotHandledException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       EventNotHandledException();
       explicit EventNotHandledException(::std::string _message);
-      ~EventNotHandledException() override;
+      ~EventNotHandledException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/EventNotSubscribedException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       EventNotSubscribedException();
       explicit EventNotSubscribedException(::std::string _message);
-      ~EventNotSubscribedException() override;
+      ~EventNotSubscribedException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/Exception.hpp

@@ -21,7 +21,7 @@ namespace ls::std::core
     public:
 
       explicit Exception(::std::string _name);
-      ~Exception() override;
+      ~Exception() noexcept override;
 
       [[nodiscard]] ::std::string getName() const;
       [[nodiscard]] const char *what() const noexcept override;

+ 1 - 1
include/ls-std/core/exception/FileNotFoundException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       FileNotFoundException();
       explicit FileNotFoundException(::std::string _message);
-      ~FileNotFoundException() override;
+      ~FileNotFoundException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/FileOperationException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       FileOperationException();
       explicit FileOperationException(::std::string _message);
-      ~FileOperationException() override;
+      ~FileOperationException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/IllegalArgumentException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       IllegalArgumentException();
       explicit IllegalArgumentException(::std::string _message);
-      ~IllegalArgumentException() override;
+      ~IllegalArgumentException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/IllegalArithmeticOperationException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       IllegalArithmeticOperationException();
       explicit IllegalArithmeticOperationException(::std::string _message);
-      ~IllegalArithmeticOperationException() override;
+      ~IllegalArithmeticOperationException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/IncompleteJsonException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       IncompleteJsonException();
       explicit IncompleteJsonException(::std::string _message);
-      ~IncompleteJsonException() override;
+      ~IncompleteJsonException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/IndexOutOfBoundsException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       IndexOutOfBoundsException();
       explicit IndexOutOfBoundsException(::std::string _message);
-      ~IndexOutOfBoundsException() override;
+      ~IndexOutOfBoundsException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

+ 1 - 1
include/ls-std/core/exception/NullPointerException.hpp

@@ -22,7 +22,7 @@ namespace ls::std::core
 
       NullPointerException();
       explicit NullPointerException(::std::string _message);
-      ~NullPointerException() override;
+      ~NullPointerException() noexcept override;
 
       [[nodiscard]] const char *what() const noexcept override;
   };

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-28
- * Changed:         2023-02-04
+ * Changed:         2023-02-22
  *
  * */
 
@@ -13,7 +13,7 @@
 ls::std::core::Version::Version(ls::std::core::type::version_type _majorVersion, ls::std::core::type::version_type _minorVersion, ls::std::core::type::version_type _patchVersion) : majorVersion(_majorVersion), minorVersion(_minorVersion), patchVersion(_patchVersion)
 {}
 
-ls::std::core::Version::~Version() = default;
+ls::std::core::Version::~Version() noexcept = default;
 
 ls::std::core::type::byte_field ls::std::core::Version::marshal()
 {

+ 2 - 2
source/ls-std/core/evaluator/EmptyStringArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-08
+* Changed:         2023-02-22
 *
 * */
 
@@ -16,7 +16,7 @@ ls::std::core::EmptyStringArgumentEvaluator::EmptyStringArgumentEvaluator(::std:
 ls::std::core::EmptyStringArgumentEvaluator::EmptyStringArgumentEvaluator(::std::string _argument, ::std::string _message) : argument(::std::move(_argument)), message(::std::move(_message))
 {}
 
-ls::std::core::EmptyStringArgumentEvaluator::~EmptyStringArgumentEvaluator() = default;
+ls::std::core::EmptyStringArgumentEvaluator::~EmptyStringArgumentEvaluator() noexcept = default;
 
 void ls::std::core::EmptyStringArgumentEvaluator::evaluate()
 {

+ 2 - 2
source/ls-std/core/evaluator/IndexOutOfBoundsEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-10
+* Changed:         2023-02-22
 *
 * */
 
@@ -16,7 +16,7 @@ ls::std::core::IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(size_t _inde
 ls::std::core::IndexOutOfBoundsEvaluator::IndexOutOfBoundsEvaluator(size_t _index, size_t _size, ::std::string _message) : index(_index), size(_size), message(::std::move(_message))
 {}
 
-ls::std::core::IndexOutOfBoundsEvaluator::~IndexOutOfBoundsEvaluator() = default;
+ls::std::core::IndexOutOfBoundsEvaluator::~IndexOutOfBoundsEvaluator() noexcept = default;
 
 void ls::std::core::IndexOutOfBoundsEvaluator::evaluate()
 {

+ 2 - 2
source/ls-std/core/evaluator/NullPointerArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-08
+* Changed:         2023-02-22
 *
 * */
 
@@ -16,7 +16,7 @@ ls::std::core::NullPointerArgumentEvaluator::NullPointerArgumentEvaluator(const
 ls::std::core::NullPointerArgumentEvaluator::NullPointerArgumentEvaluator(const ::std::shared_ptr<void> &_argument, ::std::string _message) : argument(_argument), message(::std::move(_message))
 {}
 
-ls::std::core::NullPointerArgumentEvaluator::~NullPointerArgumentEvaluator() = default;
+ls::std::core::NullPointerArgumentEvaluator::~NullPointerArgumentEvaluator() noexcept = default;
 
 void ls::std::core::NullPointerArgumentEvaluator::evaluate()
 {

+ 1 - 1
source/ls-std/core/exception/EventNotHandledException.cpp

@@ -18,7 +18,7 @@ ls::std::core::EventNotHandledException::EventNotHandledException(::std::string
   this->message = ::std::move(_message);
 }
 
-ls::std::core::EventNotHandledException::~EventNotHandledException() = default;
+ls::std::core::EventNotHandledException::~EventNotHandledException() noexcept = default;
 
 const char *ls::std::core::EventNotHandledException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/EventNotSubscribedException.cpp

@@ -18,7 +18,7 @@ ls::std::core::EventNotSubscribedException::EventNotSubscribedException(::std::s
   this->message = ::std::move(_message);
 }
 
-ls::std::core::EventNotSubscribedException::~EventNotSubscribedException() = default;
+ls::std::core::EventNotSubscribedException::~EventNotSubscribedException() noexcept = default;
 
 const char *ls::std::core::EventNotSubscribedException::what() const noexcept
 {

+ 2 - 2
source/ls-std/core/exception/Exception.cpp

@@ -12,7 +12,7 @@
 ls::std::core::Exception::Exception(::std::string _name) : name(::std::move(_name))
 {}
 
-ls::std::core::Exception::~Exception() = default;
+ls::std::core::Exception::~Exception() noexcept = default;
 
 ::std::string ls::std::core::Exception::getName() const
 {
@@ -21,5 +21,5 @@ ls::std::core::Exception::~Exception() = default;
 
 const char *ls::std::core::Exception::what() const noexcept
 {
-  return "base exception class class in use - method not implemented!";
+  return "base exception class in use - method not implemented!";
 }

+ 1 - 1
source/ls-std/core/exception/FileNotFoundException.cpp

@@ -18,7 +18,7 @@ ls::std::core::FileNotFoundException::FileNotFoundException(::std::string _messa
   this->message = ::std::move(_message);
 }
 
-ls::std::core::FileNotFoundException::~FileNotFoundException() = default;
+ls::std::core::FileNotFoundException::~FileNotFoundException() noexcept = default;
 
 const char *ls::std::core::FileNotFoundException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/FileOperationException.cpp

@@ -18,7 +18,7 @@ ls::std::core::FileOperationException::FileOperationException(::std::string _mes
   this->message = ::std::move(_message);
 }
 
-ls::std::core::FileOperationException::~FileOperationException() = default;
+ls::std::core::FileOperationException::~FileOperationException() noexcept = default;
 
 const char *ls::std::core::FileOperationException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/IllegalArgumentException.cpp

@@ -18,7 +18,7 @@ ls::std::core::IllegalArgumentException::IllegalArgumentException(::std::string
   this->message = ::std::move(_message);
 }
 
-ls::std::core::IllegalArgumentException::~IllegalArgumentException() = default;
+ls::std::core::IllegalArgumentException::~IllegalArgumentException() noexcept = default;
 
 const char *ls::std::core::IllegalArgumentException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/IllegalArithmeticOperationException.cpp

@@ -18,7 +18,7 @@ ls::std::core::IllegalArithmeticOperationException::IllegalArithmeticOperationEx
   this->message = ::std::move(_message);
 }
 
-ls::std::core::IllegalArithmeticOperationException::~IllegalArithmeticOperationException() = default;
+ls::std::core::IllegalArithmeticOperationException::~IllegalArithmeticOperationException() noexcept = default;
 
 const char *ls::std::core::IllegalArithmeticOperationException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/IncompleteJsonException.cpp

@@ -18,7 +18,7 @@ ls::std::core::IncompleteJsonException::IncompleteJsonException(::std::string _m
   this->message = ::std::move(_message);
 }
 
-ls::std::core::IncompleteJsonException::~IncompleteJsonException() = default;
+ls::std::core::IncompleteJsonException::~IncompleteJsonException() noexcept = default;
 
 const char *ls::std::core::IncompleteJsonException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/IndexOutOfBoundsException.cpp

@@ -18,7 +18,7 @@ ls::std::core::IndexOutOfBoundsException::IndexOutOfBoundsException(::std::strin
   this->message = ::std::move(_message);
 }
 
-ls::std::core::IndexOutOfBoundsException::~IndexOutOfBoundsException() = default;
+ls::std::core::IndexOutOfBoundsException::~IndexOutOfBoundsException() noexcept = default;
 
 const char *ls::std::core::IndexOutOfBoundsException::what() const noexcept
 {

+ 1 - 1
source/ls-std/core/exception/NullPointerException.cpp

@@ -18,7 +18,7 @@ ls::std::core::NullPointerException::NullPointerException(::std::string _message
   this->message = ::std::move(_message);
 }
 
-ls::std::core::NullPointerException::~NullPointerException() = default;
+ls::std::core::NullPointerException::~NullPointerException() noexcept = default;
 
 const char *ls::std::core::NullPointerException::what() const noexcept
 {