Review fixes.

This commit is contained in:
Ilya Grechuhin 2016-05-11 11:52:03 +03:00 committed by Vladimir Byko-Ianko
parent f921e3e088
commit 5502c53718

View file

@ -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: