Procházet zdrojové kódy

Add missing noexcept keyword to test classes destructors

Patrick-Christopher Mattulat před 1 rokem
rodič
revize
d242bcb715

+ 1 - 1
test/classes/core/ClassWrapper.cpp

@@ -15,7 +15,7 @@ using test::core::ClassWrapper;
 ClassWrapper::ClassWrapper() : Class("ClassWrapper")
 {}
 
-ClassWrapper::~ClassWrapper()
+ClassWrapper::~ClassWrapper() noexcept
 {
   Die();
 }

+ 2 - 2
test/classes/core/ClassWrapper.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2021-04-24
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -20,7 +20,7 @@ namespace test::core
     public:
 
       ClassWrapper();
-      ~ClassWrapper() override;
+      ~ClassWrapper() noexcept override;
 
       MOCK_METHOD0(Die, void());
   };

+ 1 - 1
test/classes/event/Colour.cpp

@@ -18,7 +18,7 @@ Colour::Colour(const string &_value) : Class("Colour")
   this->value = _value;
 }
 
-Colour::~Colour() = default;
+Colour::~Colour() noexcept = default;
 
 string Colour::getValue() const
 {

+ 2 - 2
test/classes/event/Colour.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-05-14
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -19,7 +19,7 @@ namespace test::event
     public:
 
       explicit Colour(const ::std::string &_value);
-      ~Colour() override;
+      ~Colour() noexcept override;
 
       [[nodiscard]] ::std::string getValue() const;
 

+ 1 - 1
test/classes/event/DailyNewsAgency.cpp

@@ -19,7 +19,7 @@ using test::event::NewsAgency;
 DailyNewsAgency::DailyNewsAgency() : NewsAgency("DailyNewsAgency")
 {}
 
-DailyNewsAgency::~DailyNewsAgency() = default;
+DailyNewsAgency::~DailyNewsAgency() noexcept = default;
 
 void DailyNewsAgency::listen(const Class &_info)
 {

+ 2 - 2
test/classes/event/DailyNewsAgency.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -23,7 +23,7 @@ namespace test::event
     public:
 
       DailyNewsAgency();
-      ~DailyNewsAgency() override;
+      ~DailyNewsAgency() noexcept override;
 
       // implementation
 

+ 1 - 1
test/classes/event/GossipNewsAgency.cpp

@@ -19,7 +19,7 @@ using test::event::NewsAgency;
 GossipNewsAgency::GossipNewsAgency() : NewsAgency("GossipNewsAgency")
 {}
 
-GossipNewsAgency::~GossipNewsAgency() = default;
+GossipNewsAgency::~GossipNewsAgency() noexcept = default;
 
 void GossipNewsAgency::listen(const Class &_info)
 {

+ 2 - 2
test/classes/event/GossipNewsAgency.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -23,7 +23,7 @@ namespace test::event
     public:
 
       GossipNewsAgency();
-      ~GossipNewsAgency() override;
+      ~GossipNewsAgency() noexcept override;
 
       // implementation
 

+ 1 - 1
test/classes/event/GossipNewsEvent.cpp

@@ -21,4 +21,4 @@ GossipNewsEvent::GossipNewsEvent(const string &_news) : Event("GossipNewsEvent")
   this->addParameter(newsParameter);
 }
 
-GossipNewsEvent::~GossipNewsEvent() = default;
+GossipNewsEvent::~GossipNewsEvent() noexcept = default;

+ 2 - 2
test/classes/event/GossipNewsEvent.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -20,7 +20,7 @@ namespace test::event
     public:
 
       explicit GossipNewsEvent(const ::std::string &_news);
-      ~GossipNewsEvent() override;
+      ~GossipNewsEvent() noexcept override;
   };
 }
 

+ 1 - 1
test/classes/event/SeriousNewsEvent.cpp

@@ -21,4 +21,4 @@ SeriousNewsEvent::SeriousNewsEvent(const string &_news) : Event("SeriousNewsEven
   this->addParameter(newsParameter);
 }
 
-SeriousNewsEvent::~SeriousNewsEvent() = default;
+SeriousNewsEvent::~SeriousNewsEvent() noexcept = default;

+ 2 - 2
test/classes/event/SeriousNewsEvent.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -20,7 +20,7 @@ namespace test::event
     public:
 
       explicit SeriousNewsEvent(const ::std::string &_news);
-      ~SeriousNewsEvent() override;
+      ~SeriousNewsEvent() noexcept override;
   };
 }
 

+ 1 - 1
test/classes/event/TestDataMercedesCar.cpp

@@ -19,7 +19,7 @@ TestDataMercedesCar::TestDataMercedesCar() : TestDataCar()
   this->setColor("blue");
 }
 
-TestDataMercedesCar::~TestDataMercedesCar() = default;
+TestDataMercedesCar::~TestDataMercedesCar() noexcept = default;
 
 void TestDataMercedesCar::listen(const Class &_info)
 {

+ 2 - 2
test/classes/event/TestDataMercedesCar.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-14
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -20,7 +20,7 @@ namespace test::event
     public:
 
       TestDataMercedesCar();
-      ~TestDataMercedesCar() override;
+      ~TestDataMercedesCar() noexcept override;
 
       void listen(const ls::std::core::Class &_info) override;
   };

+ 1 - 1
test/classes/io/MockFileExistenceEvaluator.cpp

@@ -19,7 +19,7 @@ using test::io::MockFileExistenceEvaluator;
 MockFileExistenceEvaluator::MockFileExistenceEvaluator(bool _fileExists) : Class("MockFileExistenceEvaluator"), fileExists(_fileExists)
 {}
 
-MockFileExistenceEvaluator::~MockFileExistenceEvaluator() = default;
+MockFileExistenceEvaluator::~MockFileExistenceEvaluator() noexcept = default;
 
 void MockFileExistenceEvaluator::evaluate()
 {

+ 2 - 2
test/classes/io/MockFileExistenceEvaluator.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-21
-* Changed:         2023-02-21
+* Changed:         2023-02-23
 *
 * */
 
@@ -20,7 +20,7 @@ namespace test::io
     public:
 
       explicit MockFileExistenceEvaluator(bool _fileExists);
-      ~MockFileExistenceEvaluator() override;
+      ~MockFileExistenceEvaluator() noexcept override;
 
       void evaluate() override;
 

+ 1 - 1
test/classes/io/MockFileReader.cpp

@@ -13,4 +13,4 @@ using test::io::MockFileReader;
 
 MockFileReader::MockFileReader() = default;
 
-MockFileReader::~MockFileReader() = default;
+MockFileReader::~MockFileReader() noexcept = default;

+ 2 - 2
test/classes/io/MockFileReader.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-21
-* Changed:         2023-02-21
+* Changed:         2023-02-23
 *
 * */
 
@@ -21,7 +21,7 @@ namespace test::io
     public:
 
       MockFileReader();
-      ~MockFileReader() override;
+      ~MockFileReader() noexcept override;
 
       MOCK_METHOD(ls::std::core::type::byte_field, read, (), (override));
   };

+ 1 - 1
test/classes/io/xml/XmlParserTestWrapper.cpp

@@ -20,7 +20,7 @@ using test::io::XmlParserTestWrapper;
 XmlParserTestWrapper::XmlParserTestWrapper() : XmlParser(nullptr)
 {}
 
-XmlParserTestWrapper::~XmlParserTestWrapper() = default;
+XmlParserTestWrapper::~XmlParserTestWrapper() noexcept = default;
 
 pair<string, string> XmlParserTestWrapper::readAttribute(const byte_field &_data)
 {

+ 2 - 2
test/classes/io/xml/XmlParserTestWrapper.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-18
- * Changed:         2023-02-05
+ * Changed:         2023-02-23
  *
  * */
 
@@ -19,7 +19,7 @@ namespace test::io
     public:
 
       XmlParserTestWrapper();
-      ~XmlParserTestWrapper() override;
+      ~XmlParserTestWrapper() noexcept override;
 
       static ::std::pair<::std::string, ::std::string> readAttribute(const ls::std::core::type::byte_field &_data);
       static ::std::list<::std::pair<::std::string, ::std::string>> readAttributes(ls::std::core::type::byte_field _data);