From 8b748541cd76a7d4be0dfef5fdaec1c12992d22f Mon Sep 17 00:00:00 2001 From: Levchenko Date: Tue, 2 Aug 2016 15:40:06 +0300 Subject: Fix coding style Has been done: - Fixed coding style; - Fixed header guard naming; - Fixed copyright comments. Related to: APPLINK-24892 --- .../include/config_profile/profile.h | 2 +- src/components/config_profile/src/profile.cc | 70 +++++++++++++--------- 2 files changed, 44 insertions(+), 28 deletions(-) (limited to 'src/components/config_profile') diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h index 629d849a5f..14983a46b2 100644 --- a/src/components/config_profile/include/config_profile/profile.h +++ b/src/components/config_profile/include/config_profile/profile.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Ford Motor Company + * Copyright (c) 2016, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/components/config_profile/src/profile.cc b/src/components/config_profile/src/profile.cc index fc9d33edd0..1a38b77254 100644 --- a/src/components/config_profile/src/profile.cc +++ b/src/components/config_profile/src/profile.cc @@ -380,8 +380,7 @@ Profile::Profile() , remove_bundle_id_attempts_(kDefaultRemoveBundleIDattempts) , max_number_of_ios_device_(kDefaultMaxNumberOfiOSDevice) , wait_time_between_apps_(kDefaultWaitTimeBetweenApps) - , enable_app_launch_ios_(kDefaultEnableAppLaunchIOS) -{ + , enable_app_launch_ios_(kDefaultEnableAppLaunchIOS) { // SDL version ReadStringValue( &sdl_version_, kDefaultSDLVersion, kMainSection, kSDLVersionKey); @@ -1735,47 +1734,64 @@ void Profile::UpdateValues() { kResumptionSection); // Read parameters from App Launch section - ReadUIntValue(&app_launch_wait_time_, kDefaultAppLaunchWaitTime, - kAppLaunchSection, kAppLaunchWaitTimeKey); + ReadUIntValue(&app_launch_wait_time_, + kDefaultAppLaunchWaitTime, + kAppLaunchSection, + kAppLaunchWaitTimeKey); - LOG_UPDATED_VALUE(app_launch_wait_time_, kAppLaunchWaitTimeKey, - kAppLaunchSection); + LOG_UPDATED_VALUE( + app_launch_wait_time_, kAppLaunchWaitTimeKey, kAppLaunchSection); - ReadUIntValue(&app_launch_max_retry_attempt_, kDefaultAppLaunchMaxRetryAttempt, - kAppLaunchSection, kAppLaunchMaxRetryAttemptKey); + ReadUIntValue(&app_launch_max_retry_attempt_, + kDefaultAppLaunchMaxRetryAttempt, + kAppLaunchSection, + kAppLaunchMaxRetryAttemptKey); - LOG_UPDATED_VALUE(app_launch_max_retry_attempt_, kAppLaunchMaxRetryAttemptKey, + LOG_UPDATED_VALUE(app_launch_max_retry_attempt_, + kAppLaunchMaxRetryAttemptKey, kAppLaunchSection); - ReadUIntValue(&app_launch_retry_wait_time_, kDefaultAppLaunchRetryWaitTime, - kAppLaunchSection, kAppLaunchRetryWaitTimeKey); + ReadUIntValue(&app_launch_retry_wait_time_, + kDefaultAppLaunchRetryWaitTime, + kAppLaunchSection, + kAppLaunchRetryWaitTimeKey); - LOG_UPDATED_VALUE(app_launch_retry_wait_time_, kAppLaunchRetryWaitTimeKey, + LOG_UPDATED_VALUE(app_launch_retry_wait_time_, + kAppLaunchRetryWaitTimeKey, kAppLaunchSection); - ReadUIntValue(&remove_bundle_id_attempts_, kDefaultRemoveBundleIDattempts, - kAppLaunchSection, kRemoveBundleIDattemptsKey); + ReadUIntValue(&remove_bundle_id_attempts_, + kDefaultRemoveBundleIDattempts, + kAppLaunchSection, + kRemoveBundleIDattemptsKey); - LOG_UPDATED_VALUE(remove_bundle_id_attempts_, kRemoveBundleIDattemptsKey, + LOG_UPDATED_VALUE(remove_bundle_id_attempts_, + kRemoveBundleIDattemptsKey, kAppLaunchSection); - ReadUIntValue(&max_number_of_ios_device_, kDefaultMaxNumberOfiOSDevice, - kAppLaunchSection, kMaxNumberOfiOSDeviceKey); + ReadUIntValue(&max_number_of_ios_device_, + kDefaultMaxNumberOfiOSDevice, + kAppLaunchSection, + kMaxNumberOfiOSDeviceKey); - LOG_UPDATED_VALUE(max_number_of_ios_device_, kMaxNumberOfiOSDeviceKey, - kAppLaunchSection); + LOG_UPDATED_VALUE( + max_number_of_ios_device_, kMaxNumberOfiOSDeviceKey, kAppLaunchSection); - ReadUIntValue(&wait_time_between_apps_, kDefaultWaitTimeBetweenApps, - kAppLaunchSection, kWaitTimeBetweenAppsKey); + ReadUIntValue(&wait_time_between_apps_, + kDefaultWaitTimeBetweenApps, + kAppLaunchSection, + kWaitTimeBetweenAppsKey); - LOG_UPDATED_VALUE(wait_time_between_apps_, kWaitTimeBetweenAppsKey, - kAppLaunchSection); + LOG_UPDATED_VALUE( + wait_time_between_apps_, kWaitTimeBetweenAppsKey, kAppLaunchSection); - ReadBoolValue(&enable_app_launch_ios_, kDefaultEnableAppLaunchIOS, - kAppLaunchSection, kEnableAppLaunchIOSKey); + ReadBoolValue(&enable_app_launch_ios_, + kDefaultEnableAppLaunchIOS, + kAppLaunchSection, + kEnableAppLaunchIOSKey); - LOG_UPDATED_BOOL_VALUE(enable_app_launch_ios_, kEnableAppLaunchIOSKey, - kAppLaunchSection); + LOG_UPDATED_BOOL_VALUE( + enable_app_launch_ios_, kEnableAppLaunchIOSKey, kAppLaunchSection); } bool Profile::ReadValue(bool* value, -- cgit v1.2.1