aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_ledger.cpp
diff options
context:
space:
mode:
authorMoroccanMalinois <MoroccanMalinois@protonmail.com>2018-03-04 18:56:48 +0000
committerMoroccanMalinois <MoroccanMalinois@protonmail.com>2018-03-04 18:56:48 +0000
commit25ea307d675496c7cddc463fa13d1d5d0c286dba (patch)
tree754b7d91218f2f70f6d34befe696393c64dd1ed1 /src/device/device_ledger.cpp
parentMerge pull request #3303 (diff)
downloadmonero-25ea307d675496c7cddc463fa13d1d5d0c286dba.tar.xz
Fix invalid device unique_ptr cast
Diffstat (limited to '')
-rw-r--r--src/device/device_ledger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp
index e8eb7cc8b..cede834a1 100644
--- a/src/device/device_ledger.cpp
+++ b/src/device/device_ledger.cpp
@@ -2054,7 +2054,7 @@ namespace hw {
legder_device = new device_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