forked from organicmaps/organicmaps
Review fixes.
This commit is contained in:
parent
f921e3e088
commit
5502c53718
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue