summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/message_helper/message_helper.cc
diff options
context:
space:
mode:
authorAshwin Karemore <akaremor@ford.com>2018-07-02 17:35:54 +0200
committerAKalinich-Luxoft <AKalinich@luxoft.com>2018-07-26 18:58:33 +0300
commitac1216b8b697b287217175b76da6ad6b0f5649ba (patch)
treea3a712c7f26d59cdec9c5857dbe70ff5ca5ff178 /src/components/application_manager/src/message_helper/message_helper.cc
parent193aaf8b290128669cc0e75b176931a16d6ca5a0 (diff)
downloadsdl_core-ac1216b8b697b287217175b76da6ad6b0f5649ba.tar.gz
fix style
Diffstat (limited to 'src/components/application_manager/src/message_helper/message_helper.cc')
-rw-r--r--src/components/application_manager/src/message_helper/message_helper.cc18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/components/application_manager/src/message_helper/message_helper.cc b/src/components/application_manager/src/message_helper/message_helper.cc
index 58b3552e9f..052d619fcc 100644
--- a/src/components/application_manager/src/message_helper/message_helper.cc
+++ b/src/components/application_manager/src/message_helper/message_helper.cc
@@ -94,8 +94,8 @@ bool ValidateSoftButtons(smart_objects::SmartObject& soft_buttons) {
// Check if image parameter is valid
if (button.keyExists(strings::image)) {
SmartObject& buttonImage = button[strings::image];
- if (false == MessageHelper::VerifyString(
- buttonImage[strings::value].asString())) {
+ if (false ==
+ MessageHelper::VerifyString(buttonImage[strings::value].asString())) {
return false;
}
}
@@ -2598,11 +2598,9 @@ mobile_apis::Result::eType MessageHelper::VerifyImageFiles(
return mobile_apis::Result::SUCCESS;
}
-void MessageHelper::ApplyImagePath(
- smart_objects::SmartObject& image,
- ApplicationConstSharedPtr app,
- ApplicationManager& app_mngr) {
-
+void MessageHelper::ApplyImagePath(smart_objects::SmartObject& image,
+ ApplicationConstSharedPtr app,
+ ApplicationManager& app_mngr) {
const std::string& file_name = image[strings::value].asString();
const std::string& full_file_path = GetAppFilePath(file_name, app, app_mngr);
@@ -2669,19 +2667,17 @@ mobile_apis::Result::eType MessageHelper::VerifyImage(
smart_objects::SmartObject& image,
ApplicationConstSharedPtr app,
ApplicationManager& app_mngr) {
-
const uint32_t image_type = image[strings::image_type].asUInt();
mobile_apis::ImageType::eType type =
static_cast<mobile_apis::ImageType::eType>(image_type);
const std::string& file_name = image[strings::value].asString();
-
- if(!VerifyString(file_name)){
+ if (!VerifyString(file_name)) {
return mobile_apis::Result::INVALID_DATA;
}
if (mobile_apis::ImageType::STATIC == type) {
- return mobile_apis::Result::SUCCESS;
+ return mobile_apis::Result::SUCCESS;
}
ApplyImagePath(image, app, app_mngr);