Эх сурвалжийг харах

Add noexcept keyword to destructors of time module

Patrick-Christopher Mattulat 1 жил өмнө
parent
commit
33cc52f945

+ 2 - 2
include/ls-std/time/Date.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-02-06
+ * Changed:         2023-02-22
  *
  * */
 
@@ -21,7 +21,7 @@ namespace ls::std::time
     public:
 
       Date();
-      ~Date() override;
+      ~Date() noexcept override;
 
       // arithmetic operators
 

+ 2 - 2
source/ls-std/time/Date.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2023-02-04
+ * Changed:         2023-02-22
  *
  * */
 
@@ -19,7 +19,7 @@ ls::std::time::Date::Date() : ls::std::core::Class("Date")
   this->_init();
 }
 
-ls::std::time::Date::~Date() = default;
+ls::std::time::Date::~Date() noexcept = default;
 
 ls::std::time::Date &ls::std::time::Date::operator+(int _value)
 {