Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-05-11 11:52:03 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-05-12 10:38:43 +0300
commit5502c53718c1dd17fbe4bbf08f47aff0ff69cb6c (patch)
tree86cc374235ea6aaa6e39b5827250698b37700322 /iphone/Maps/Settings
parentf921e3e088898d66efd1094d9042de39d40dee94 (diff)
Review fixes.
Diffstat (limited to 'iphone/Maps/Settings')
-rw-r--r--iphone/Maps/Settings/SettingsViewController.mm8
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: