forked from qt-creator/qt-creator
Utils: Remove two uses of FilePath::toString
The context here (passed as part of command lines args) suggests the use of .nativePath(), but if .toString() was ok so far, .path() (i.e. with forward slashs also on Windows) would change less. Change-Id: I045c4311c67b8875b87c328fbe57ca79ae0d7f1a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -105,8 +105,8 @@ static std::optional<Tool> unzipTool(const FilePath &src, const FilePath &dest)
|
||||
const std::optional<Tool> resolvedTool = resolveTool(tool);
|
||||
if (resolvedTool) {
|
||||
Tool result = *resolvedTool;
|
||||
const QString srcStr = src.toString();
|
||||
const QString destStr = dest.toString();
|
||||
const QString srcStr = src.path();
|
||||
const QString destStr = dest.path();
|
||||
const QString args = result.command.arguments().replace("%{src}", srcStr).replace("%{dest}", destStr);
|
||||
result.command.setArguments(args);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user