forked from qt-creator/qt-creator
Core: Add a default parameter to various ICore::*path functions
Saves some code on the user side. Change-Id: I32cd220b6e533f5497a1865f9c34ab9db4cfda79 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ bool withFile(const Utils::FilePath &path, const F &f)
|
||||
|
||||
Utils::FilePath MachineFilesDir()
|
||||
{
|
||||
return Core::ICore::userResourcePath() / "Meson-machine-files";
|
||||
return Core::ICore::userResourcePath("Meson-machine-files");
|
||||
}
|
||||
|
||||
MachineFileManager::MachineFileManager()
|
||||
|
||||
@@ -54,7 +54,7 @@ ToolsSettingsAccessor::ToolsSettingsAccessor()
|
||||
"Meson"),
|
||||
Core::Constants::IDE_DISPLAY_NAME)
|
||||
{
|
||||
setBaseFilePath(Core::ICore::userResourcePath() / 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