Sfoglia il codice sorgente

Address SonarLint findings in TestDataFactory class

Patrick-Christopher Mattulat 1 anno fa
parent
commit
480c31f5a8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      test/classes/io/xml/TestDataFactory.cpp

+ 2 - 2
test/classes/io/xml/TestDataFactory.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-05-14
- * Changed:         2023-02-23
+ * Changed:         2023-05-18
  *
  * */
 
@@ -21,7 +21,7 @@ TestDataFactory::~TestDataFactory() = default;
 
 shared_ptr<XmlNode> TestDataFactory::createXmlContent()
 {
-  shared_ptr<XmlNode> root = make_shared<XmlNode>("dialog");
+  auto root = make_shared<XmlNode>("dialog");
   shared_ptr<XmlAttribute> attribute{};
   shared_ptr<XmlNode> child{};
   shared_ptr<XmlNode> text{};