forked from qt-creator/qt-creator
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -57,8 +57,7 @@ bool withFile(const Utils::FilePath &path, const F &f)
|
||||
|
||||
Utils::FilePath MachineFilesDir()
|
||||
{
|
||||
return Utils::FilePath::fromString(Core::ICore::userResourcePath())
|
||||
.pathAppended("Meson-machine-files");
|
||||
return Core::ICore::userResourcePath() / "Meson-machine-files";
|
||||
}
|
||||
|
||||
MachineFileManager::MachineFileManager()
|
||||
|
||||
@@ -54,8 +54,7 @@ ToolsSettingsAccessor::ToolsSettingsAccessor()
|
||||
"Meson"),
|
||||
Core::Constants::IDE_DISPLAY_NAME)
|
||||
{
|
||||
setBaseFilePath(Utils::FilePath::fromString(Core::ICore::userResourcePath())
|
||||
.pathAppended(Constants::ToolsSettings::FILENAME));
|
||||
setBaseFilePath(Core::ICore::userResourcePath() / Constants::ToolsSettings::FILENAME);
|
||||
}
|
||||
|
||||
void ToolsSettingsAccessor::saveMesonTools(const std::vector<MesonTools::Tool_t> &tools,
|
||||
|
||||
Reference in New Issue
Block a user