diff --git a/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp b/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp index b5d4bd14e5c..324f0e2884b 100644 --- a/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp +++ b/src/plugins/clangpchmanager/pchmanagerconnectionclient.cpp @@ -51,13 +51,13 @@ ClangPchManager::PchManagerConnectionClient::PchManagerConnectionClient( { m_processCreator.setTemporaryDirectoryPattern("clangpchmanagerbackend-XXXXXX"); - QDir pchsDirectory(Core::ICore::cacheResourcePath()); + QDir pchsDirectory(Core::ICore::cacheResourcePath().toString()); pchsDirectory.mkdir("pchs"); pchsDirectory.cd("pchs"); m_processCreator.setArguments({connectionName(), - Core::ICore::cacheResourcePath("symbol-experimental-v1.db"), + Core::ICore::cacheResourcePath("symbol-experimental-v1.db").toString(), pchsDirectory.absolutePath(), - Core::ICore::resourcePath()}); + Core::ICore::resourcePath().toString()}); stdErrPrefixer().setPrefix("PchManagerConnectionClient.stderr: "); stdOutPrefixer().setPrefix("PchManagerConnectionClient.stdout: "); diff --git a/tests/unit/mockup/coreplugin/icore.h b/tests/unit/mockup/coreplugin/icore.h index 8cf88f70376..239085d56d6 100644 --- a/tests/unit/mockup/coreplugin/icore.h +++ b/tests/unit/mockup/coreplugin/icore.h @@ -1,20 +1,23 @@ +#include "utils/fileutils.h" + #include + namespace Core { namespace ICore { -inline static QString userResourcePath() +inline static Utils::FilePath userResourcePath() { - return QDir::tempPath(); + return Utils::FilePath::fromString(QDir::tempPath()); } -inline static QString cacheResourcePath() +inline static Utils::FilePath cacheResourcePath(const QString & /*rel*/ = {}) { - return QDir::tempPath(); + return Utils::FilePath::fromString(QDir::tempPath()); } -inline static QString resourcePath() +inline static Utils::FilePath resourcePath() { - return QDir::tempPath(); + return Utils::FilePath::fromString(QDir::tempPath()); } } // namespace ICore