summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-01-06 11:08:30 +0100
committerhjk <hjk@qt.io>2023-01-06 10:37:00 +0000
commit126d1d009e64bc39529cd1a118ad8c22e9f7fdfe (patch)
tree165c02709d3b14970313354217ba47b1d723af09
parent33e8251edffcf96a9b4cb206ff5a7c317d25f75d (diff)
downloadqt-creator-126d1d009e64bc39529cd1a118ad8c22e9f7fdfe.tar.gz
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>
-rw-r--r--src/libs/utils/archive.cpp4
1 files 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<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;