Switched from value to reference in switch_algo xmrig::Algorithm param

This commit is contained in:
MoneroOcean 2018-07-28 11:30:24 +02:00
parent 684feb38fd
commit 2ceb9c8749
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

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