From: Romain Forlot Date: Tue, 14 Mar 2017 23:51:38 +0000 (+0100) Subject: Uniformization between get_name() method of signals. X-Git-Tag: 3.99.1~267 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=56c22348d3af944b68bc7395553b9f8b1a817ba6;p=apps%2Flow-level-can-service.git Uniformization between get_name() method of signals. can_signal_t and active_diagnostic_message return name with prefix using this method. If you need without it then use get_generic_name. Change-Id: I6b153eb20214049c10619d39fcc65c8641a9e32f Signed-off-by: Romain Forlot --- diff --git a/src/diagnostic/active-diagnostic-request.cpp b/src/diagnostic/active-diagnostic-request.cpp index 762cb61..9d0f6aa 100644 --- a/src/diagnostic/active-diagnostic-request.cpp +++ b/src/diagnostic/active-diagnostic-request.cpp @@ -76,9 +76,9 @@ DiagnosticRequestHandle* active_diagnostic_request_t::get_handle() return handle_; } -std::string& active_diagnostic_request_t::get_name() +const std::string active_diagnostic_request_t::get_name() const { - return name_; + return active_diagnostic_request_t::prefix_ + "." + name_; } std::string& active_diagnostic_request_t::get_prefix()