diff --git a/src/workers/Workers.cpp b/src/workers/Workers.cpp index d77bf681..4564bec8 100644 --- a/src/workers/Workers.cpp +++ b/src/workers/Workers.cpp @@ -213,7 +213,7 @@ void Workers::soft_stop() // stop current workers leaving uv stuff intact (used } // setups workers based on specified algorithm (or its basic perf algo more specifically) -void Workers::switch_algo(const xmrig::Algorithm algorithm) +void Workers::switch_algo(const xmrig::Algorithm& algorithm) { if (m_status.algo == algorithm.algo()) return; diff --git a/src/workers/Workers.h b/src/workers/Workers.h index 8cfd02d8..058564e3 100644 --- a/src/workers/Workers.h +++ b/src/workers/Workers.h @@ -58,7 +58,7 @@ public: static void setJob(const Job &job, bool donate); static void start(xmrig::Controller *controller); // setups workers based on specified algorithm (or its basic perf algo more specifically) - static void switch_algo(xmrig::Algorithm); + static void switch_algo(const xmrig::Algorithm&); static void stop(); static void submit(const JobResult &result);