From 0b48b4621fb9cc52b2c55c640c00d3ee33489966 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 20 Feb 2024 14:39:16 +0100 Subject: [PATCH] Make it compile with Win and VS again. --- include/utils/views/split_paths.h | 2 +- src/communication/CommandLine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/views/split_paths.h b/include/utils/views/split_paths.h index 926150555a..2b68f6b211 100644 --- a/include/utils/views/split_paths.h +++ b/include/utils/views/split_paths.h @@ -15,7 +15,7 @@ namespace cura::views namespace details { #ifdef _WIN32 -constexpr auto path_sep = ";"; +constexpr auto path_sep = ';'; #else constexpr auto path_sep = ':'; #endif diff --git a/src/communication/CommandLine.cpp b/src/communication/CommandLine.cpp index f6cd567431..45b51d8dce 100644 --- a/src/communication/CommandLine.cpp +++ b/src/communication/CommandLine.cpp @@ -592,7 +592,7 @@ std::string CommandLine::findDefinitionFile(const std::string& definition_id, co { if (auto candidate = search_directory / (definition_id + ".def.json"); std::filesystem::exists(candidate)) { - return candidate; + return candidate.string(); } } spdlog::error("Couldn't find definition file with ID: {}", definition_id);