fs: consistently use fsbridge for {i,o}fstream

Part of #20744, but this can be done now, and will simplify the diff.
This commit is contained in:
fanquake
2021-12-24 16:19:02 +08:00
parent e3699b71c4
commit 21f781ad79
6 changed files with 7 additions and 7 deletions

View File

@@ -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();
}