Browse Source

Address SonarLint findings in GossipNewsAgency class

Patrick-Christopher Mattulat 1 year ago
parent
commit
29ed31192a

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

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

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
  * Created:         2020-11-27
- * Changed:         2023-03-27
+ * Changed:         2023-05-16
  *
  *
  * */
  * */
 
 
@@ -32,7 +32,7 @@ namespace test::event
       // additional functionality
       // additional functionality
 
 
       void clear();
       void clear();
-      [[nodiscard]] ::std::string getNews();
+      [[nodiscard]] ::std::string getNews() const;
 
 
     private:
     private: