forked from organicmaps/organicmaps
[routing] fix_warning_on_linux
This commit is contained in:
parent
0d7002197d
commit
65598037d6
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ string const RoutingOptions::kAvoidRoutingOptionSettingsForCar = "avoid_routing_
|
|||
RoutingOptions RoutingOptions::LoadCarOptionsFromSettings()
|
||||
{
|
||||
uint32_t mode = 0;
|
||||
UNUSED_VALUE(settings::Get(kAvoidRoutingOptionSettingsForCar, mode));
|
||||
if (!settings::Get(kAvoidRoutingOptionSettingsForCar, mode))
|
||||
mode = 0;
|
||||
|
||||
return RoutingOptions(base::checked_cast<RoadType>(mode));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue