Browse Source

Add noexcept keyword to destructors of boxing module

Patrick-Christopher Mattulat 1 year ago
parent
commit
1d359bf00e

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

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

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

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

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

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

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

@@ -23,7 +23,7 @@ namespace ls::std::boxing
 
 
       explicit Integer(int _value);
       explicit Integer(int _value);
       Integer();
       Integer();
-      ~Integer() override;
+      ~Integer() noexcept override;
 
 
       // assignment operators
       // 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);
       explicit Long(ls::std::core::type::long_type _value);
       Long();
       Long();
-      ~Long() override;
+      ~Long() noexcept override;
 
 
       // assignment operators
       // assignment operators
 
 

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

@@ -26,7 +26,7 @@ namespace ls::std::boxing
 
 
       String();
       String();
       explicit String(::std::string _value);
       explicit String(::std::string _value);
-      ~String() override;
+      ~String() noexcept override;
 
 
       // assignment operators
       // 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() : 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)
 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);
   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)
 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(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)
 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() : 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)
 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() : 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)
 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(::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)
 ls::std::boxing::String &ls::std::boxing::String::operator=(::std::string _value)
 {
 {