소스 검색

Add noexcept keyword to destructors of time module

Patrick-Christopher Mattulat 1 년 전
부모
커밋
33cc52f945
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      include/ls-std/time/Date.hpp
  2. 2 2
      source/ls-std/time/Date.cpp

+ 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)
 {