Bladeren bron

Address SonarLint findings in XmlDocumentTest class

Patrick-Christopher Mattulat 1 jaar geleden
bovenliggende
commit
5dd6cabe95
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      test/cases/io/xml/XmlDocumentTest.cpp

+ 2 - 2
test/cases/io/xml/XmlDocumentTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-09-30
- * Changed:         2023-05-17
+ * Changed:         2023-05-18
  *
  * */
 
@@ -47,7 +47,7 @@ namespace
     XmlDocument document{};
     ASSERT_TRUE(document.getDeclaration() == nullptr);
 
-    document.setDeclaration(make_shared<XmlDeclaration>(XmlDeclaration{"1.0"}));
+    document.setDeclaration(make_shared<XmlDeclaration>("1.0"));
     ASSERT_TRUE(document.getDeclaration() != nullptr);
     ASSERT_STREQ("1.0", document.getDeclaration()->getVersion().c_str());
   }