summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-10-12 16:12:58 -0400
committerJackLivio <jack@livio.io>2018-10-12 16:12:58 -0400
commit5aa5123c5b13f3acd024f720a1d3367e371911c4 (patch)
treeb5a381ec8787167ca43ae4b7ecc511b81ecd878a
parentaf73f1fbe063e8afaa57edd0146166ae2b5e86d6 (diff)
downloadsdl_core-5aa5123c5b13f3acd024f720a1d3367e371911c4.tar.gz
Add asBool()
-rw-r--r--src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/get_interior_vehicle_data_request.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/get_interior_vehicle_data_request.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/get_interior_vehicle_data_request.cc
index 81573600c2..f5077d4826 100644
--- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/get_interior_vehicle_data_request.cc
+++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/get_interior_vehicle_data_request.cc
@@ -94,7 +94,7 @@ void GetInteriorVehicleDataRequest::FilterDisabledModuleData(
// If radioEnable is false, remove all other radio parameters from the
// message.
if (module_data.keyExists(message_params::kRadioEnable) &&
- module_data[message_params::kRadioEnable] == false) {
+ module_data[message_params::kRadioEnable].asBool() == false) {
for (auto data = module_data.map_begin(); data != module_data.map_end();
++data) {
if (data->first != message_params::kRadioEnable) {
@@ -105,7 +105,7 @@ void GetInteriorVehicleDataRequest::FilterDisabledModuleData(
// If hdRadioEnable is false, find and remove the HDChannel if parameter is
// present.
if (module_data.keyExists(message_params::kHdRadioEnable) &&
- module_data[message_params::kHdRadioEnable] == false) {
+ module_data[message_params::kHdRadioEnable].asBool() == false) {
module_data.erase(message_params::kHdChannel);
}
}