src: broad refactoring to use FilePath.wstr() where easily possible

This commit is contained in:
mlangkabel
2018-02-06 11:35:36 +01:00
parent 9da3ac3d3c
commit f0b817eb0a
34 changed files with 106 additions and 103 deletions
+6 -6
View File
@@ -19,8 +19,8 @@ public:
if (!includeDirectives.empty())
{
TS_ASSERT_EQUALS("foo.h", includeDirectives.front().getIncludedFile().str());
TS_ASSERT_EQUALS("foo.cpp", includeDirectives.front().getIncludingFile().str());
TS_ASSERT_EQUALS(L"foo.h", includeDirectives.front().getIncludedFile().wstr());
TS_ASSERT_EQUALS(L"foo.cpp", includeDirectives.front().getIncludingFile().wstr());
}
}
@@ -35,8 +35,8 @@ public:
if (!includeDirectives.empty())
{
TS_ASSERT_EQUALS("foo.h", includeDirectives.front().getIncludedFile().str());
TS_ASSERT_EQUALS("foo.cpp", includeDirectives.front().getIncludingFile().str());
TS_ASSERT_EQUALS(L"foo.h", includeDirectives.front().getIncludedFile().wstr());
TS_ASSERT_EQUALS(L"foo.cpp", includeDirectives.front().getIncludingFile().wstr());
}
}
void test_include_detection_finds_include_with_quotes_and_space_before_keyword()
@@ -50,8 +50,8 @@ public:
if (!includeDirectives.empty())
{
TS_ASSERT_EQUALS("foo.h", includeDirectives.front().getIncludedFile().str());
TS_ASSERT_EQUALS("foo.cpp", includeDirectives.front().getIncludingFile().str());
TS_ASSERT_EQUALS(L"foo.h", includeDirectives.front().getIncludedFile().wstr());
TS_ASSERT_EQUALS(L"foo.cpp", includeDirectives.front().getIncludingFile().wstr());
}
}