From 2771304c7065de05cd78712c76f81cb643824e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= <francois-simon.fauteux-chapleau@savoirfairelinux.com> Date: Tue, 22 Apr 2025 11:31:19 -0400 Subject: [PATCH] conversation: fix build error on Windows It seems that msvc doesn't support using the '+' operator to concatenate an std::filesystem::path and a string, but that the '+=' operator works. GitLab: #1118 Change-Id: I153b47458c5ec8c690cea9cd173c9054b115090d --- src/jamidht/conversation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jamidht/conversation.cpp b/src/jamidht/conversation.cpp index a41545e990..e03f6b5cbd 100644 --- a/src/jamidht/conversation.cpp +++ b/src/jamidht/conversation.cpp @@ -2177,7 +2177,8 @@ Conversation::downloadFile(const std::string& interactionId, } } - auto tempFilePath = filePath + std::string(".tmp"); + std::filesystem::path tempFilePath(filePath); + tempFilePath += ".tmp"; auto start = fileutils::size(tempFilePath); if (start < 0) start = 0; -- GitLab