diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-06 17:22:59 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-06-29 10:33:13 +0200 |
commit | facc2fa7b8a218a0df6a19772e1641ea68dda2e3 (patch) | |
tree | c2e5cf39dd2c0b88517a8bb2a83d7ca2bba2c360 /src/test/fuzz/policy_estimator_io.cpp | |
parent | 6666803c897e4ad27b45cb74e3a9aa74a335f1bf (diff) |
Use AutoFile where possible
Diffstat (limited to 'src/test/fuzz/policy_estimator_io.cpp')
-rw-r--r-- | src/test/fuzz/policy_estimator_io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/policy_estimator_io.cpp b/src/test/fuzz/policy_estimator_io.cpp index 77402c260a..436873c955 100644 --- a/src/test/fuzz/policy_estimator_io.cpp +++ b/src/test/fuzz/policy_estimator_io.cpp @@ -26,7 +26,7 @@ FUZZ_TARGET_INIT(policy_estimator_io, initialize_policy_estimator_io) { FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size()); FuzzedAutoFileProvider fuzzed_auto_file_provider = ConsumeAutoFile(fuzzed_data_provider); - CAutoFile fuzzed_auto_file = fuzzed_auto_file_provider.open(); + AutoFile fuzzed_auto_file{fuzzed_auto_file_provider.open()}; // Re-using block_policy_estimator across runs to avoid costly creation of CBlockPolicyEstimator object. static CBlockPolicyEstimator block_policy_estimator{FeeestPath(*g_setup->m_node.args)}; if (block_policy_estimator.Read(fuzzed_auto_file)) { |