diff options
author | Andrey Oleynik (GitHub) <aoleynik@luxoft.com> | 2017-12-07 20:52:28 +0200 |
---|---|---|
committer | Andriy Byzhynar <AByzhynar@luxoft.com> | 2018-01-18 12:03:51 +0200 |
commit | 41c7c86289c1c36252ce217041e13214b080fe82 (patch) | |
tree | ea627527073cf039bf9e4b9488a081c5291864b0 | |
parent | 5c4003ecaf15d37ffe2909d14bca5884e458c303 (diff) | |
download | sdl_core-41c7c86289c1c36252ce217041e13214b080fe82.tar.gz |
Changes return codes for application id replacement
-rw-r--r-- | src/components/application_manager/src/commands/command_impl.cc | 8 |
1 files 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<std::string>::const_iterator key = keys.begin(); for (; key != keys.end(); ++key) { if (!ReplaceHMIWithMobileAppId(message[*key])) { - break; + return false; } } break; |