diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2019-09-17 15:40:01 +0300 |
---|---|---|
committer | Juha Alanen <19551460+jmalanen@users.noreply.github.com> | 2019-09-18 14:29:15 +0300 |
commit | 6b13c42314f28e3b27111367c4f3296c3c3c1248 (patch) | |
tree | 2f91aae637e2c49bb55cfc336f772ac772ab5a2d /include/mbgl/util/feature.hpp | |
parent | 0042f0b9f5de7151f14300f02a559b6ecb48a507 (diff) | |
download | qtlocation-mapboxgl-6b13c42314f28e3b27111367c4f3296c3c3c1248.tar.gz |
[build] Fix clang format and tidy checks
Diffstat (limited to 'include/mbgl/util/feature.hpp')
-rw-r--r-- | include/mbgl/util/feature.hpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/include/mbgl/util/feature.hpp b/include/mbgl/util/feature.hpp index d2a23cc5b0..390cc65720 100644 --- a/include/mbgl/util/feature.hpp +++ b/include/mbgl/util/feature.hpp @@ -13,7 +13,7 @@ using PropertyMap = mapbox::feature::property_map; using FeatureIdentifier = mapbox::feature::identifier; using Feature = mapbox::feature::feature<double>; using FeatureState = PropertyMap; -using FeatureStates = std::unordered_map<std::string, FeatureState>; // <featureID, FeatureState> +using FeatureStates = std::unordered_map<std::string, FeatureState>; // <featureID, FeatureState> using LayerFeatureStates = std::unordered_map<std::string, FeatureStates>; // <sourceLayer, FeatureStates> template <class T> @@ -39,21 +39,9 @@ inline optional<std::string> featureIDtoString(const FeatureIdentifier& id) { } return id.match( - [] (const std::string& value_) { - return value_; - }, - [] (uint64_t value_) { - return util::toString(value_); - }, - [] (int64_t value_) { - return util::toString(value_); - }, - [] (double value_) { - return util::toString(value_); - }, - [] (const auto&) -> optional<std::string> { - return nullopt; - }); + [](const std::string& value_) { return value_; }, [](uint64_t value_) { return util::toString(value_); }, + [](int64_t value_) { return util::toString(value_); }, [](double value_) { return util::toString(value_); }, + [](const auto&) -> optional<std::string> { return nullopt; }); } } // namespace mbgl |