From 5502c53718c1dd17fbe4bbf08f47aff0ff69cb6c Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Wed, 11 May 2016 11:52:03 +0300 Subject: [PATCH] Review fixes. --- iphone/Maps/Settings/SettingsViewController.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/Settings/SettingsViewController.mm b/iphone/Maps/Settings/SettingsViewController.mm index d8949a5ec3..cc756001fc 100644 --- a/iphone/Maps/Settings/SettingsViewController.mm +++ b/iphone/Maps/Settings/SettingsViewController.mm @@ -242,7 +242,7 @@ typedef NS_ENUM(NSUInteger, Section) case SectionAd: [Statistics logEvent:kStatSettings withParameters:@{kStatAction : kStatMoreApps, kStatValue : (value ? kStatOn : kStatOff)}]; - settings::Set(kAdForbiddenSettingsKey, (bool)!value); + settings::Set(kAdForbiddenSettingsKey, static_cast(!value)); break; case SectionStatistics: @@ -267,7 +267,7 @@ typedef NS_ENUM(NSUInteger, Section) { [Statistics logEvent:kStatEventName(kStatSettings, kStatAutoDownload) withParameters:@{kStatValue : (value ? kStatOn : kStatOff)}]; - settings::Set(kAutoDownloadEnabledKey, (bool)value); + settings::Set(kAutoDownloadEnabledKey, static_cast(value)); break; } // 3D buildings @@ -288,7 +288,7 @@ typedef NS_ENUM(NSUInteger, Section) { [Statistics logEvent:kStatEventName(kStatSettings, kStatToggleZoomButtonsVisibility) withParameters:@{kStatValue : (value ? kStatVisible : kStatHidden)}]; - settings::Set("ZoomButtonsEnabled", (bool)value); + settings::Set("ZoomButtonsEnabled", static_cast(value)); [MapsAppDelegate theApp].mapViewController.controlsManager.zoomHidden = !value; break; } @@ -298,7 +298,7 @@ typedef NS_ENUM(NSUInteger, Section) case SectionCalibration: [Statistics logEvent:kStatEventName(kStatSettings, kStatToggleCompassCalibration) withParameters:@{kStatValue : (value ? kStatOn : kStatOff)}]; - settings::Set("CompassCalibrationEnabled", (bool)value); + settings::Set("CompassCalibrationEnabled", static_cast(value)); break; case SectionRouting: