@@ -69,7 +69,7 @@ class TestImportProject : public TestFixture {
6969 }
7070
7171 void setDefines () const {
72- FileSettings fs;
72+ FileSettings fs{ " " } ;
7373
7474 ImportProject::fsSetDefines (fs, " A" );
7575 ASSERT_EQUALS (" A=1" , fs.defines );
@@ -85,7 +85,7 @@ class TestImportProject : public TestFixture {
8585 }
8686
8787 void setIncludePaths1 () const {
88- FileSettings fs;
88+ FileSettings fs{ " " } ;
8989 std::list<std::string> in (1 , " ../include" );
9090 std::map<std::string, std::string, cppcheck::stricmp> variables;
9191 ImportProject::fsSetIncludePaths (fs, " abc/def/" , in, variables);
@@ -94,7 +94,7 @@ class TestImportProject : public TestFixture {
9494 }
9595
9696 void setIncludePaths2 () const {
97- FileSettings fs;
97+ FileSettings fs{ " " } ;
9898 std::list<std::string> in (1 , " $(SolutionDir)other" );
9999 std::map<std::string, std::string, cppcheck::stricmp> variables;
100100 variables[" SolutionDir" ] = " c:/abc/" ;
@@ -104,7 +104,7 @@ class TestImportProject : public TestFixture {
104104 }
105105
106106 void setIncludePaths3 () const { // macro names are case insensitive
107- FileSettings fs;
107+ FileSettings fs{ " " } ;
108108 std::list<std::string> in (1 , " $(SOLUTIONDIR)other" );
109109 std::map<std::string, std::string, cppcheck::stricmp> variables;
110110 variables[" SolutionDir" ] = " c:/abc/" ;
@@ -371,9 +371,8 @@ class TestImportProject : public TestFixture {
371371 }
372372
373373 void ignorePaths () const {
374- FileSettings fs1, fs2;
375- fs1.path = PathWithDetails{" foo/bar" };
376- fs2.path = PathWithDetails{" qwe/rty" };
374+ FileSettings fs1{" foo/bar" };
375+ FileSettings fs2{" qwe/rty" };
377376 TestImporter project;
378377 project.fileSettings = {std::move (fs1), std::move (fs2)};
379378
0 commit comments