Merge pull request #3346

25ea307d Fix invalid device unique_ptr cast (MoroccanMalinois)
This commit is contained in:
Riccardo Spagni 2018-03-05 19:13:40 +02:00
commit 05f0762dc5
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 3 additions and 3 deletions

View file

@ -254,7 +254,7 @@ namespace hw {
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)));
}

View file

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