mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 03:38:53 +00:00
Fix invalid device unique_ptr cast
This commit is contained in:
parent
c7ace5fa3d
commit
25ea307d67
@ -254,10 +254,10 @@ namespace hw {
|
|||||||
default_core_device->set_name("default_core_device");
|
default_core_device->set_name("default_core_device");
|
||||||
|
|
||||||
}
|
}
|
||||||
registry.insert(std::make_pair("default",default_core_device));
|
registry.insert(std::make_pair("default", std::unique_ptr<device>(default_core_device)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2054,7 +2054,7 @@ namespace hw {
|
|||||||
legder_device = new device_ledger();
|
legder_device = new device_ledger();
|
||||||
legder_device->set_name("Ledger");
|
legder_device->set_name("Ledger");
|
||||||
}
|
}
|
||||||
registry.insert(std::make_pair("Ledger", legder_device));
|
registry.insert(std::make_pair("Ledger", std::unique_ptr<device>(legder_device)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#else //WITH_DEVICE_LEDGER
|
#else //WITH_DEVICE_LEDGER
|
||||||
|
Loading…
Reference in New Issue
Block a user