diff options
author | Conlain Kelly <conlain.k@gmail.com> | 2018-07-24 17:19:08 -0400 |
---|---|---|
committer | Conlain Kelly <conlain.k@gmail.com> | 2018-07-24 17:19:08 -0400 |
commit | 1dc7bf3e56f927915c440ced3d102a2a53fb22db (patch) | |
tree | 07f2ad1e59ac20bec47a21658da2c09194c22e85 /src/components/application_manager/include/application_manager/message_helper.h | |
parent | 8ff26a734267451030ee8ee62b5f672324a755c9 (diff) | |
download | sdl_core-1dc7bf3e56f927915c440ced3d102a2a53fb22db.tar.gz |
style fix
Diffstat (limited to 'src/components/application_manager/include/application_manager/message_helper.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/message_helper.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/components/application_manager/include/application_manager/message_helper.h b/src/components/application_manager/include/application_manager/message_helper.h index 3c90928d8a..b15cf0c615 100644 --- a/src/components/application_manager/include/application_manager/message_helper.h +++ b/src/components/application_manager/include/application_manager/message_helper.h @@ -855,23 +855,25 @@ class MessageHelper { */ static smart_objects::SmartObjectSPtr CreateMessageForHMI( hmi_apis::messageType::eType message_type, const uint32_t correlation_id); - - + // Check whether each choice has the vrCommands field - // returns -1 for failure, 0 if all choice include vrCommands, and 1 if none do + // returns -1 for failure, 0 if all choice include vrCommands, and 1 if none + // do // vrCommands is an all-or-none deal static int CheckChoiceSet_VRCommands( const smart_objects::SmartObject& choice_set) { - // if this becomes true, someone doesn't have vrCommands bool all_have = true; // if this is true, no one has vrCommands bool none_have = true; - smart_objects::SmartArray::const_iterator current_choice_set_it = choice_set.asArray()->begin(); + smart_objects::SmartArray::const_iterator current_choice_set_it = + choice_set.asArray()->begin(); // Iterate through choices - for (; choice_set.asArray()->end() != current_choice_set_it; ++current_choice_set_it) { + for (; choice_set.asArray()->end() != current_choice_set_it; + ++current_choice_set_it) { // if the vrCommands is present - if (current_choice_set_it->keyExists(application_manager::strings::vr_commands)) { + if (current_choice_set_it->keyExists( + application_manager::strings::vr_commands)) { // this one has the parameter none_have = false; } else { |