summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <akutsan@luxoft.com>2018-06-17 20:11:21 +0300
committerIra Lytvynenko (GitHub) <ILytvynenko@luxoft.com>2018-06-27 18:20:30 +0300
commit63ad0000e8f9b5ab166ff64dba439609b46c0e37 (patch)
tree56429f3e2c4908cd93bb3034c798687dd617ec5a
parent240fd5b8e9eeba18e80092de750f77de061a9d55 (diff)
downloadsdl_core-63ad0000e8f9b5ab166ff64dba439609b46c0e37.tar.gz
Make unsubscribeFromVehicleInfo methof boolean
-rw-r--r--src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
index e7937eadb8..af01d0ff7b 100644
--- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
+++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_app_extension.cc
@@ -55,13 +55,15 @@ bool VehicleInfoAppExtension::subscribeToVehicleInfo(
return subscribed_data_.insert(vehicle_data).second;
}
-void VehicleInfoAppExtension::unsubscribeFromVehicleInfo(
+bool VehicleInfoAppExtension::unsubscribeFromVehicleInfo(
const VehicleDataType vehicle_data) {
LOG4CXX_DEBUG(logger_, vehicle_data);
auto it = subscribed_data_.find(vehicle_data);
if (it != subscribed_data_.end()) {
subscribed_data_.erase(it);
+ return true;
}
+ return false;
}
void VehicleInfoAppExtension::unsubscribeFromVehicleInfo() {