forked from qt-creator/qt-creator
Unittest: Fix build
Amends 8e352af0ec
.
Change-Id: I8130996fa68d9a5fa4217a8db001745a0382f91b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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: ");
|
||||
|
@@ -1,20 +1,23 @@
|
||||
#include "utils/fileutils.h"
|
||||
|
||||
#include <QDir>
|
||||
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user