Quellcode durchsuchen

Add noexcept keyword to destructors of boxing module

Patrick-Christopher Mattulat vor 1 Jahr
Ursprung
Commit
1d359bf00e

+ 1 - 1
include/ls-std/boxing/Boolean.hpp

@@ -24,7 +24,7 @@ namespace ls::std::boxing
 
       explicit Boolean(bool _value);
       Boolean();
-      ~Boolean() override;
+      ~Boolean() noexcept override;
 
       // assignment operators
 

+ 1 - 1
include/ls-std/boxing/Double.hpp

@@ -23,7 +23,7 @@ namespace ls::std::boxing
 
       Double();
       explicit Double(double _value);
-      ~Double() override;
+      ~Double() noexcept override;
 
       // assignment operators
 

+ 1 - 1
include/ls-std/boxing/Float.hpp

@@ -23,7 +23,7 @@ namespace ls::std::boxing
 
       Float();
       explicit Float(float _value);
-      ~Float() override;
+      ~Float() noexcept override;
 
       // assignment operators
 

+ 1 - 1
include/ls-std/boxing/Integer.hpp

@@ -23,7 +23,7 @@ namespace ls::std::boxing
 
       explicit Integer(int _value);
       Integer();
-      ~Integer() override;
+      ~Integer() noexcept override;
 
       // assignment operators
 

+ 1 - 1
include/ls-std/boxing/Long.hpp

@@ -24,7 +24,7 @@ namespace ls::std::boxing
 
       explicit Long(ls::std::core::type::long_type _value);
       Long();
-      ~Long() override;
+      ~Long() noexcept override;
 
       // assignment operators
 

+ 1 - 1
include/ls-std/boxing/String.hpp

@@ -26,7 +26,7 @@ namespace ls::std::boxing
 
       String();
       explicit String(::std::string _value);
-      ~String() override;
+      ~String() noexcept override;
 
       // assignment operators
 

+ 1 - 1
source/ls-std/boxing/Boolean.cpp

@@ -17,7 +17,7 @@ ls::std::boxing::Boolean::Boolean(bool _value) : ls::std::core::Class("Boolean")
 ls::std::boxing::Boolean::Boolean() : ls::std::core::Class("Boolean")
 {}
 
-ls::std::boxing::Boolean::~Boolean() = default;
+ls::std::boxing::Boolean::~Boolean() noexcept = default;
 
 ls::std::boxing::Boolean &ls::std::boxing::Boolean::operator=(int _value)
 {

+ 1 - 1
source/ls-std/boxing/Double.cpp

@@ -21,7 +21,7 @@ ls::std::boxing::Double::Double(double _value) : ls::std::core::Class("Double"),
   this->_assignEpsilon(0.00000001);
 }
 
-ls::std::boxing::Double::~Double() = default;
+ls::std::boxing::Double::~Double() noexcept = default;
 
 ls::std::boxing::Double &ls::std::boxing::Double::operator=(double _value)
 {

+ 1 - 1
source/ls-std/boxing/Float.cpp

@@ -17,7 +17,7 @@ ls::std::boxing::Float::Float() : ls::std::core::Class("Float"), epsilon(0.00001
 ls::std::boxing::Float::Float(float _value) : ls::std::core::Class("Float"), epsilon(0.00001f), value(_value)
 {}
 
-ls::std::boxing::Float::~Float() = default;
+ls::std::boxing::Float::~Float() noexcept = default;
 
 ls::std::boxing::Float &ls::std::boxing::Float::operator=(float _value)
 {

+ 1 - 1
source/ls-std/boxing/Integer.cpp

@@ -16,7 +16,7 @@ ls::std::boxing::Integer::Integer(int _value) : ls::std::core::Class("Integer"),
 ls::std::boxing::Integer::Integer() : ls::std::core::Class("Integer")
 {}
 
-ls::std::boxing::Integer::~Integer() = default;
+ls::std::boxing::Integer::~Integer() noexcept = default;
 
 ls::std::boxing::Integer &ls::std::boxing::Integer::operator=(int _value)
 {

+ 1 - 1
source/ls-std/boxing/Long.cpp

@@ -16,7 +16,7 @@ ls::std::boxing::Long::Long(ls::std::core::type::long_type _value) : ls::std::co
 ls::std::boxing::Long::Long() : ls::std::core::Class("Long")
 {}
 
-ls::std::boxing::Long::~Long() = default;
+ls::std::boxing::Long::~Long() noexcept = default;
 
 ls::std::boxing::Long &ls::std::boxing::Long::operator=(ls::std::core::type::long_type _value)
 {

+ 1 - 1
source/ls-std/boxing/String.cpp

@@ -16,7 +16,7 @@ ls::std::boxing::String::String() : ls::std::core::Class("String")
 ls::std::boxing::String::String(::std::string _value) : ls::std::core::Class("String"), value(::std::move(_value))
 {}
 
-ls::std::boxing::String::~String() = default;
+ls::std::boxing::String::~String() noexcept = default;
 
 ls::std::boxing::String &ls::std::boxing::String::operator=(::std::string _value)
 {