summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc b/src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc
index 0749537e07..c609e2dc0a 100644
--- a/src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc
+++ b/src/components/application_manager/src/commands/hmi/on_vr_command_notification.cc
@@ -46,16 +46,14 @@ namespace commands {
OnVRCommandNotification::OnVRCommandNotification(
const MessageSharedPtr& message, ApplicationManager& application_manager)
- : NotificationFromHMI(message, application_manager) {
-}
+ : NotificationFromHMI(message, application_manager) {}
-OnVRCommandNotification::~OnVRCommandNotification() {
-}
+OnVRCommandNotification::~OnVRCommandNotification() {}
void OnVRCommandNotification::Run() {
LOG4CXX_AUTO_TRACE(logger_);
- const uint32_t cmd_id = (*message_)[strings::msg_params][strings::cmd_id]
- .asUInt();
+ const uint32_t cmd_id =
+ (*message_)[strings::msg_params][strings::cmd_id].asUInt();
uint32_t max_cmd_id = application_manager_.get_settings().max_cmd_id();
// Check if this is one of standart VR commands (i.e. "Help")
@@ -76,8 +74,8 @@ void OnVRCommandNotification::Run() {
if (cmd_id == max_cmd_id + 1) {
return;
}
- const uint32_t app_id = (*message_)[strings::msg_params][strings::app_id]
- .asUInt();
+ const uint32_t app_id =
+ (*message_)[strings::msg_params][strings::app_id].asUInt();
ApplicationSharedPtr app = application_manager_.application(app_id);
if (!app) {
LOG4CXX_ERROR(logger_, "NULL pointer");
@@ -104,4 +102,3 @@ void OnVRCommandNotification::Run() {
} // namespace commands
} // namespace application_manager
-