From 41c7c86289c1c36252ce217041e13214b080fe82 Mon Sep 17 00:00:00 2001 From: "Andrey Oleynik (GitHub)" Date: Thu, 7 Dec 2017 20:52:28 +0200 Subject: Changes return codes for application id replacement --- src/components/application_manager/src/commands/command_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/application_manager/src/commands/command_impl.cc b/src/components/application_manager/src/commands/command_impl.cc index 5251c9e122..38fe980cce 100644 --- a/src/components/application_manager/src/commands/command_impl.cc +++ b/src/components/application_manager/src/commands/command_impl.cc @@ -115,7 +115,7 @@ bool CommandImpl::ReplaceMobileWithHMIAppId( smart_objects::SmartArray::iterator it = message_array->begin(); for (; it != message_array->end(); ++it) { if (!ReplaceMobileWithHMIAppId(*it)) { - break; + return false; } } break; @@ -126,7 +126,7 @@ bool CommandImpl::ReplaceMobileWithHMIAppId( for (; key != keys.end(); ++key) { std::string k = *key; if (!ReplaceMobileWithHMIAppId(message[*key])) { - break; + return false; } } break; @@ -198,7 +198,7 @@ bool CommandImpl::ReplaceHMIWithMobileAppId( smart_objects::SmartArray::iterator it = message_array->begin(); for (; it != message_array->end(); ++it) { if (!ReplaceHMIWithMobileAppId(*it)) { - break; + return false; } } break; @@ -208,7 +208,7 @@ bool CommandImpl::ReplaceHMIWithMobileAppId( std::set::const_iterator key = keys.begin(); for (; key != keys.end(); ++key) { if (!ReplaceHMIWithMobileAppId(message[*key])) { - break; + return false; } } break; -- cgit v1.2.1