Browse Source

Add noexcept keyword to destructors of event module

Patrick-Christopher Mattulat 1 year ago
parent
commit
c57be3067f

+ 2 - 2
include/ls-std/event/Event.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-26
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -23,7 +23,7 @@ namespace ls::std::event
     public:
 
       explicit Event(const ls::std::core::type::event_id &_id);
-      ~Event() override;
+      ~Event() noexcept override;
 
       // additional functionality
 

+ 2 - 2
include/ls-std/event/EventHandler.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-06
+ * Changed:         2023-02-22
  *
  * */
 
@@ -25,7 +25,7 @@ namespace ls::std::event
     public:
 
       explicit EventHandler(const ls::std::core::type::event_id &_id);
-      ~EventHandler() override;
+      ~EventHandler() noexcept override;
 
       [[nodiscard]] ls::std::core::type::event_id getId();
 

+ 2 - 2
include/ls-std/event/EventManager.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -25,7 +25,7 @@ namespace ls::std::event
     public:
 
       explicit EventManager();
-      ~EventManager() override;
+      ~EventManager() noexcept override;
 
       // implementation
 

+ 2 - 2
include/ls-std/event/Narrator.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-14
- * Changed:         2023-02-06
+ * Changed:         2023-02-22
  *
  * */
 
@@ -23,7 +23,7 @@ namespace ls::std::event
     public:
 
       Narrator();
-      ~Narrator() override;
+      ~Narrator() noexcept override;
 
       bool addListener(const ::std::shared_ptr<ls::std::core::interface_type::IListener> &_listener); // nodiscard is optional here
       void clear();

+ 2 - 2
include/ls-std/event/serialization/SerializableJsonEvent.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-07
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -24,7 +24,7 @@ namespace ls::std::event
     public:
 
       explicit SerializableJsonEvent(const ::std::shared_ptr<ls::std::event::Event> &_value);
-      ~SerializableJsonEvent() override;
+      ~SerializableJsonEvent() noexcept override;
 
       // implementation
 

+ 2 - 2
source/ls-std/event/Event.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-26
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -15,7 +15,7 @@ ls::std::event::Event::Event(const ls::std::core::type::event_id &_id) : ls::std
   this->_assignId(_id);
 }
 
-ls::std::event::Event::~Event() = default;
+ls::std::event::Event::~Event() noexcept = default;
 
 bool ls::std::event::Event::addParameter(const ls::std::core::type::event_parameter &_eventParameter)
 {

+ 2 - 2
source/ls-std/event/EventHandler.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -15,7 +15,7 @@ ls::std::event::EventHandler::EventHandler(const ls::std::core::type::event_id &
   this->_assignId(_id);
 }
 
-ls::std::event::EventHandler::~EventHandler() = default;
+ls::std::event::EventHandler::~EventHandler() noexcept = default;
 
 ls::std::core::type::event_id ls::std::event::EventHandler::getId()
 {

+ 2 - 2
source/ls-std/event/EventManager.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -16,7 +16,7 @@
 ls::std::event::EventManager::EventManager() : ls::std::core::Class("EventManager")
 {}
 
-ls::std::event::EventManager::~EventManager() = default;
+ls::std::event::EventManager::~EventManager() noexcept = default;
 
 void ls::std::event::EventManager::subscribe(const ls::std::core::type::event_id &_id, const ::std::shared_ptr<ls::std::core::interface_type::IListener> &_listener)
 {

+ 2 - 2
source/ls-std/event/Narrator.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-14
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -14,7 +14,7 @@
 ls::std::event::Narrator::Narrator() : ls::std::core::Class("Narrator")
 {}
 
-ls::std::event::Narrator::~Narrator() = default;
+ls::std::event::Narrator::~Narrator() noexcept = default;
 
 bool ls::std::event::Narrator::addListener(const ::std::shared_ptr<ls::std::core::interface_type::IListener> &_listener)
 {

+ 2 - 2
source/ls-std/event/serialization/SerializableJsonEvent.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-07
- * Changed:         2023-02-08
+ * Changed:         2023-02-22
  *
  * */
 
@@ -15,7 +15,7 @@ ls::std::event::SerializableJsonEvent::SerializableJsonEvent(const ::std::shared
   this->_assignValue(_value);
 }
 
-ls::std::event::SerializableJsonEvent::~SerializableJsonEvent() = default;
+ls::std::event::SerializableJsonEvent::~SerializableJsonEvent() noexcept = default;
 
 ls::std::core::type::byte_field ls::std::event::SerializableJsonEvent::marshal()
 {