diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-05-11 11:52:03 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-12 10:38:43 +0300 |
commit | 5502c53718c1dd17fbe4bbf08f47aff0ff69cb6c (patch) | |
tree | 86cc374235ea6aaa6e39b5827250698b37700322 /iphone/Maps/Settings | |
parent | f921e3e088898d66efd1094d9042de39d40dee94 (diff) |
Review fixes.
Diffstat (limited to 'iphone/Maps/Settings')
-rw-r--r-- | iphone/Maps/Settings/SettingsViewController.mm | 8 |
1 files 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<bool>(!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<bool>(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<bool>(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<bool>(value)); break; case SectionRouting: |