Преглед изворни кода

Address SonarLint findings in GossipNewsAgency class

Patrick-Christopher Mattulat пре 1 година
родитељ
комит
29ed31192a
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      test/classes/event/GossipNewsAgency.cpp
  2. 2 2
      test/classes/event/GossipNewsAgency.hpp

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

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

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