From 14a786bab0f3b85fabf37645c6e997dbeb30b831 Mon Sep 17 00:00:00 2001 From: Project579 Date: Sat, 6 Aug 2022 18:31:27 +0200 Subject: [PATCH] iniimporter: Don't convert paths to "std::string". --- apps/mwiniimporter/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mwiniimporter/main.cpp b/apps/mwiniimporter/main.cpp index ed6ff907f4..ffd663df6c 100644 --- a/apps/mwiniimporter/main.cpp +++ b/apps/mwiniimporter/main.cpp @@ -97,7 +97,7 @@ int wmain(int argc, wchar_t *wargv[]) { std::filesystem::path cfgFile(vm["cfg"].as()); // if no output is given, write back to cfg file - std::string outputFile(vm["output"].as()); + auto outputFile = vm["output"].as(); if(vm["output"].defaulted()) { outputFile = vm["cfg"].as(); } @@ -138,7 +138,7 @@ int wmain(int argc, wchar_t *wargv[]) { } std::cout << "write to: " << outputFile << std::endl; - std::ofstream file((sfs::path(outputFile))); + std::ofstream file(outputFile); importer.writeToFile(file, cfg); } catch (std::exception& e)