From be7ac493d031b47dd8890817df0f018eb8ff1cfa Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Fri, 24 Dec 2021 16:19:02 +0800 Subject: [PATCH] merge bitcoin#24167: consistently use fsbridge:: for ifstream / ofstream --- src/bench/bench.cpp | 4 ++-- src/bitcoin-tx.cpp | 3 ++- src/fs.cpp | 4 +++- src/qt/psbtoperationsdialog.cpp | 2 +- src/qt/sendcoinsdialog.cpp | 2 +- src/qt/walletframe.cpp | 2 +- src/test/fuzz/fuzz.cpp | 2 +- src/test/script_tests.cpp | 2 +- src/util/system.cpp | 2 +- 9 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index 0cfc1e23fa..011bed4206 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -5,11 +5,11 @@ #include #include +#include #include #include #include -#include #include #include @@ -23,7 +23,7 @@ void GenerateTemplateResults(const std::vector& bench // nothing to write, bail out return; } - std::ofstream fout(filename); + fsbridge::ofstream fout{fs::PathFromString(filename)}; if (fout.is_open()) { ankerl::nanobench::render(tpl, benchmarkResults, fout); } else { diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 9859c2a5f6..99889a3e96 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include