From 7674529c84eced2a0b172811ac085a9b75fb6452 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 2 Jun 2017 19:49:46 +0200 Subject: C++ coding style No changes on the object so it is a const method... Change-Id: I55b50d0d6fc0dd120f58ca56b6a68172353a5ef5 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/diagnostic/diagnostic-message.cpp | 2 +- CAN-binder/low-can-binding/diagnostic/diagnostic-message.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'CAN-binder') diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-message.cpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-message.cpp index dd39f88..69ca4e3 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-message.cpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-message.cpp @@ -89,7 +89,7 @@ void diagnostic_message_t::set_parent(can_message_set_t* parent) /// @brief Build a DiagnosticRequest struct to be passed /// to diagnostic manager instance. /// -const DiagnosticRequest diagnostic_message_t::build_diagnostic_request() + const DiagnosticRequest diagnostic_message_t::build_diagnostic_request() const { return {/*arbitration_id: */OBD2_FUNCTIONAL_BROADCAST_ID, /*mode: */0x1, diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-message.hpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-message.hpp index 65ed9c0..8217614 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-message.hpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-message.hpp @@ -77,7 +77,7 @@ class diagnostic_message_t void set_supported(bool value); void set_parent(can_message_set_t* parent); - const DiagnosticRequest build_diagnostic_request(); + const DiagnosticRequest build_diagnostic_request() const; bool is_obd2_response(const can_message_t& can_message); bool is_obd2_request(const DiagnosticRequest *request); -- cgit 1.2.3-korg