Browse Source

Fix SonarLint findings in NewsAgency class

Patrick-Christopher Mattulat 11 months ago
parent
commit
709a708c87
2 changed files with 4 additions and 4 deletions
  1. 2 2
      test/classes/event/NewsAgency.cpp
  2. 2 2
      test/classes/event/NewsAgency.hpp

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-02-23
+ * Changed:         2023-05-19
  *
  * */
 
@@ -18,7 +18,7 @@ NewsAgency::NewsAgency(string _agencyName) : agencyName(::move(_agencyName))
 
 NewsAgency::~NewsAgency() = default;
 
-string NewsAgency::getName()
+string NewsAgency::getName() const
 {
   return this->agencyName;
 }

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

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2023-03-27
+ * Changed:         2023-05-19
  *
  * */
 
@@ -21,7 +21,7 @@ namespace test::event
       explicit NewsAgency(::std::string _agencyName);
       virtual ~NewsAgency();
 
-      [[nodiscard]] ::std::string getName();
+      [[nodiscard]] ::std::string getName() const;
 
     private: