diff --git a/src/plugins/cppeditor/cppsourceprocessertesthelper.cpp b/src/plugins/cppeditor/cppsourceprocessertesthelper.cpp index bf166625d31..10d925b42c0 100644 --- a/src/plugins/cppeditor/cppsourceprocessertesthelper.cpp +++ b/src/plugins/cppeditor/cppsourceprocessertesthelper.cpp @@ -27,14 +27,14 @@ QString TestIncludePaths::globalIncludePath() return QDir::cleanPath(includeBaseDirectory() + QLatin1String("/global")); } -QString TestIncludePaths::directoryOfTestFile() +FilePath TestIncludePaths::directoryOfTestFile() { - return QDir::cleanPath(includeBaseDirectory() + QLatin1String("/local")); + return FilePath::fromString(QDir::cleanPath(includeBaseDirectory())) / "local"; } FilePath TestIncludePaths::testFilePath(const QString &fileName) { - return FilePath::fromString(directoryOfTestFile()) / fileName; + return directoryOfTestFile() / fileName; } } // CppEditor::Tests::Internal diff --git a/src/plugins/cppeditor/cppsourceprocessertesthelper.h b/src/plugins/cppeditor/cppsourceprocessertesthelper.h index 69f82156b66..4d8c7ac4829 100644 --- a/src/plugins/cppeditor/cppsourceprocessertesthelper.h +++ b/src/plugins/cppeditor/cppsourceprocessertesthelper.h @@ -18,7 +18,7 @@ public: static QString includeBaseDirectory(); static QString globalQtCoreIncludePath(); static QString globalIncludePath(); - static QString directoryOfTestFile(); + static Utils::FilePath directoryOfTestFile(); static Utils::FilePath testFilePath(const QString &fileName = QLatin1String("file.cpp")); };