diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-18 19:50:02 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-19 14:48:23 +0200 |
commit | 3bc17dd60bfd97e36b12849d4d3a5dd3d093a426 (patch) | |
tree | 8d0dd786c859551d965b1fa3497f15ae25e3551c /CAN-binder/low-can-binding/binding/configuration.cpp | |
parent | 465001c7ef7479e7cfb7af7af180ed6419a5ab49 (diff) |
Use shared_ptr for can_message_set too.
Change-Id: I3ba4881d5fc01a69d55e101b9a07c2019dda1d4b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/binding/configuration.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/binding/configuration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CAN-binder/low-can-binding/binding/configuration.cpp b/CAN-binder/low-can-binding/binding/configuration.cpp index 7f53c62..cc2b8f2 100644 --- a/CAN-binder/low-can-binding/binding/configuration.cpp +++ b/CAN-binder/low-can-binding/binding/configuration.cpp @@ -42,24 +42,24 @@ uint8_t configuration_t::get_active_message_set() const return active_message_set_; } -const std::vector<can_message_set_t>& configuration_t::get_can_message_set() +const std::vector<std::shared_ptr<can_message_set_t> >& configuration_t::get_can_message_set() { return can_message_set_; } std::vector<std::shared_ptr<can_signal_t> > configuration_t::get_can_signals() { - return can_message_set_[active_message_set_].get_can_signals(); + return can_message_set_[active_message_set_]->get_can_signals(); } std::vector<std::shared_ptr<diagnostic_message_t> > configuration_t::get_diagnostic_messages() { - return can_message_set_[active_message_set_].get_diagnostic_messages(); + return can_message_set_[active_message_set_]->get_diagnostic_messages(); } std::vector<std::shared_ptr<can_message_definition_t> > configuration_t::get_can_message_definition() { - return can_message_set_[active_message_set_].get_can_message_definition(); + return can_message_set_[active_message_set_]->get_can_message_definition(); } uint32_t configuration_t::get_signal_id(diagnostic_message_t& sig) const |