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)