aboutsummaryrefslogtreecommitdiff
path: root/src/bench/streams_findbyte.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-11-22 11:19:40 +0000
committerfanquake <fanquake@gmail.com>2023-11-22 11:24:39 +0000
commitca041fc4ab891c92f3de156240e1137d7fab0f32 (patch)
tree64ae4ec4975d69b12644dfc9d3b0926451e8ced4 /src/bench/streams_findbyte.cpp
parent3dca308bd77cae6489e325e19472338a525def6e (diff)
parent4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 (diff)
Merge bitcoin/bitcoin#28904: Drop CAutoFile
4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 streams: Drop unused CAutoFile (Anthony Towns) cde9a4b137e93f1548dffac9b396ca0b472b6187 refactor: switch from CAutoFile to AutoFile (Anthony Towns) bbd4646a2ef514c31570ca9d1475fc9ddb35bdfd blockstorage: switch from CAutoFile to AutoFile (Anthony Towns) c72ddf04db95a94e91939d46d13ab6a46fefb4be streams: Remove unused CAutoFile::GetVersion (Anthony Towns) e63f64307929ad398a23ecfaabc3664270883155 streams: Base BufferedFile on AutoFile instead of CAutoFile (Anthony Towns) Pull request description: Continuing the move away from `GetVersion()`, replace uses of `CAutoFile` with `AutoFile`. ACKs for top commit: maflcko: re-ACK 4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 🖼 TheCharlatan: ACK 4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 stickies-v: ACK 4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 Tree-SHA512: 1a68c42fdb725ca4bf573e22794fe7809fea764a5f97ecb33435add3c609d40f336038fb22ab1ea72567530efd39678278c9016f92ed04891afdb310631b4e82
Diffstat (limited to 'src/bench/streams_findbyte.cpp')
-rw-r--r--src/bench/streams_findbyte.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/streams_findbyte.cpp b/src/bench/streams_findbyte.cpp
index 4aaccb2af8..5098262e9a 100644
--- a/src/bench/streams_findbyte.cpp
+++ b/src/bench/streams_findbyte.cpp
@@ -14,7 +14,7 @@
static void FindByte(benchmark::Bench& bench)
{
// Setup
- CAutoFile file{fsbridge::fopen("streams_tmp", "w+b"), 0};
+ AutoFile file{fsbridge::fopen("streams_tmp", "w+b")};
const size_t file_size = 200;
uint8_t data[file_size] = {0};
data[file_size-1] = 1;