From 126d1d009e64bc39529cd1a118ad8c22e9f7fdfe Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 6 Jan 2023 11:08:30 +0100 Subject: 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 --- src/libs/utils/archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/archive.cpp b/src/libs/utils/archive.cpp index 7a3dd4b487..cb66f18886 100644 --- a/src/libs/utils/archive.cpp +++ b/src/libs/utils/archive.cpp @@ -105,8 +105,8 @@ static std::optional unzipTool(const FilePath &src, const FilePath &dest) const std::optional 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; -- cgit v1.2.1