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;