From cec3cf94c4e4176b6ca636663e7ec5f5251c01f2 Mon Sep 17 00:00:00 2001 From: Alexander Kutsan Date: Tue, 29 Aug 2017 19:09:24 +0300 Subject: Fix typo in Aqcuire -> Acquire --- .../include/remote_control/commands/base_command_request.h | 4 ++-- src/components/remote_control/src/commands/base_command_request.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/remote_control/include/remote_control/commands/base_command_request.h b/src/components/remote_control/include/remote_control/commands/base_command_request.h index eb6ea23f74..3fd27861b2 100644 --- a/src/components/remote_control/include/remote_control/commands/base_command_request.h +++ b/src/components/remote_control/include/remote_control/commands/base_command_request.h @@ -266,13 +266,13 @@ class BaseCommandRequest bool CheckDriverConsent(); /** - * @brief AqcuireResources checks whether resource status is busy or not and + * @brief AcquireResources checks whether resource status is busy or not and * then tries to acquire this resource. In case driver consent is required - * sends consent request to HMI. * @return True in case of resource is free and successfully acquired, * otherwise false */ - bool AqcuireResources(); + bool AcquireResources(); inline bool IsAutoAllowed(application_manager::TypeAccess access) const; void SendDisallowed(application_manager::TypeAccess access); void SendGetUserConsent(const Json::Value& value); diff --git a/src/components/remote_control/src/commands/base_command_request.cc b/src/components/remote_control/src/commands/base_command_request.cc index f9bd165ebd..925f0c4e4e 100644 --- a/src/components/remote_control/src/commands/base_command_request.cc +++ b/src/components/remote_control/src/commands/base_command_request.cc @@ -331,10 +331,10 @@ void BaseCommandRequest::Run() { } LOG4CXX_TRACE(logger_, "RC interface is available!"); if (CheckPolicyPermissions() && CheckDriverConsent()) { - if (AqcuireResources()) { + if (AcquireResources()) { Execute(); // run child's logic } - // If resource is not aqcuired, AqcuireResources method will either + // If resource is not aqcuired, AcquireResources method will either // send response to mobile or // send additional request to HMI to ask driver consent } @@ -392,7 +392,7 @@ bool BaseCommandRequest::CheckDriverConsent() { return false; } -bool BaseCommandRequest::AqcuireResources() { +bool BaseCommandRequest::AcquireResources() { LOG4CXX_AUTO_TRACE(logger_); const Json::Value message_params = MessageHelper::StringToValue(message_->json_message()); -- cgit v1.2.1