diff --git a/src/core/Benchmark.cpp b/src/core/Benchmark.cpp index c335bb85..1029260c 100644 --- a/src/core/Benchmark.cpp +++ b/src/core/Benchmark.cpp @@ -25,6 +25,7 @@ #include "net/JobResults.h" #include "net/Network.h" #include "rapidjson/document.h" +#include "backend/common/interfaces/IBackend.h" #include namespace xmrig { @@ -138,7 +139,7 @@ void Benchmark::start(const BenchAlgo bench_algo) { // calculate number of active miner backends in m_enabled_backend_count m_enabled_backend_count = 0; const Algorithm algo(ba2a[bench_algo]); - for (IBackend *backend : m_controller->miner()->backends()) if (backend->isEnabled(algo)) ++ m_enabled_backend_count; + for (auto backend : m_controller->miner()->backends()) if (backend->isEnabled(algo)) ++ m_enabled_backend_count; if (m_enabled_backend_count == 0) { run_next_bench_algo(m_bench_algo); return;