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:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2017-10-23 14:30:37 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-11-09 13:20:32 +0300
commitd4fe66cb4b332e125bcb31e61e49aa319cb637aa (patch)
treeed1882768323e3b588e3cfa5977b69c44257eeff /indexer/map_object.cpp
parent568c2f21e16408941273613207ba247e16f2dae4 (diff)
Using optionals in ftraits
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r--indexer/map_object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp
index fe7492184d..3bbaaf07ec 100644
--- a/indexer/map_object.cpp
+++ b/indexer/map_object.cpp
@@ -203,8 +203,8 @@ string MapObject::GetBuildingLevels() const
ftraits::WheelchairAvailability MapObject::GetWheelchairType() const
{
- ftraits::WheelchairAvailability ret;
- return ftraits::Wheelchair::GetValue(m_types, ret) ? ret : ftraits::WheelchairAvailability::No;
+ auto const opt = ftraits::Wheelchair::GetValue(m_types);
+ return opt ? *opt : ftraits::WheelchairAvailability::No;
}
feature::Metadata const & MapObject::GetMetadata() const { return m_metadata; }