Browse Source

Address SonarLint findings in DailyNewsAgency class

Patrick-Christopher Mattulat 1 year ago
parent
commit
50fdc0f264
2 changed files with 4 additions and 4 deletions
  1. 2 2
      test/classes/event/DailyNewsAgency.cpp
  2. 2 2
      test/classes/event/DailyNewsAgency.hpp

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-23
+ * Changed:         2023-05-15
  *
  * */
 
@@ -36,7 +36,7 @@ void DailyNewsAgency::clear()
   this->news.clear();
 }
 
-string DailyNewsAgency::getNews()
+string DailyNewsAgency::getNews() const
 {
   return this->news;
 }

+ 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-03-27
+ * Changed:         2023-05-15
  *
  * */
 
@@ -32,7 +32,7 @@ namespace test::event
       // additional functionality
 
       void clear();
-      [[nodiscard]] ::std::string getNews();
+      [[nodiscard]] ::std::string getNews() const;
 
     private: