From 21f781ad7921ebda9f38a6be362e23750d8cd5a6 Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 24 Dec 2021 16:19:02 +0800 Subject: fs: consistently use fsbridge for {i,o}fstream Part of #20744, but this can be done now, and will simplify the diff. --- src/util/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/system.cpp') diff --git a/src/util/system.cpp b/src/util/system.cpp index e34cdc7fb9..19de08d1ea 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -146,7 +146,7 @@ bool CheckDiskSpace(const fs::path& dir, uint64_t additional_bytes) } std::streampos GetFileSize(const char* path, std::streamsize max) { - std::ifstream file(path, std::ios::binary); + fsbridge::ifstream file{path, std::ios::binary}; file.ignore(max); return file.gcount(); } -- cgit v1.2.3