diff --git a/src/solver/simulation/solver_utils.cpp b/src/solver/simulation/solver_utils.cpp index c8dca37a4c..401aa3db68 100644 --- a/src/solver/simulation/solver_utils.cpp +++ b/src/solver/simulation/solver_utils.cpp @@ -142,7 +142,7 @@ void annualCostsStatistics::writeUpdateTimes(IResultWriter& writer) const buffer << "MAX (ms) : " << updateTime.costMax << "\n"; std::string s = buffer.str(); - writer.addEntryFromBuffer(updateTimeFilename.string(), s); + writer.addEntryFromBuffer(updateTimeFilename, s); } void annualCostsStatistics::writeOptimizationTimeToOutput(IResultWriter& writer) const @@ -161,7 +161,7 @@ void annualCostsStatistics::writeOptimizationTimeToOutput(IResultWriter& writer) buffer << "MAX (ms) : " << optimizationTime2.costMax << "\n"; std::string s = buffer.str(); - writer.addEntryFromBuffer(optimizationTimeFilename.string(), s); + writer.addEntryFromBuffer(optimizationTimeFilename, s); } } // namespace Antares::Solver::Simulation diff --git a/src/solver/variable/include/antares/solver/variable/surveyresults/reportbuilder.hxx b/src/solver/variable/include/antares/solver/variable/surveyresults/reportbuilder.hxx index dec3692ee7..45291ead59 100644 --- a/src/solver/variable/include/antares/solver/variable/surveyresults/reportbuilder.hxx +++ b/src/solver/variable/include/antares/solver/variable/surveyresults/reportbuilder.hxx @@ -273,7 +273,7 @@ public: std::filesystem::path path = std::string(results.data.originalOutput); path /= "grid"; path /= "digest.txt"; - writer.addEntryFromBuffer(path.string(), digestBuffer); + writer.addEntryFromBuffer(path, digestBuffer); } private: