summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-01-19 14:47:58 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-01-19 17:56:48 -0800
commit9b62661b07e86fc1d64e308fde3e15527c1cd8c8 (patch)
treec27b37e3f94b53d4fdd5855d1eb68868ce803bae /src/mbgl/annotation
parent48cced9e311d5c1cf2a98937eeaf638c94456c8d (diff)
downloadqtlocation-mapboxgl-9b62661b07e86fc1d64e308fde3e15527c1cd8c8.tar.gz
[core] Use experimental optional instead of mapbox::util::optional
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r--src/mbgl/annotation/annotation_tile.cpp6
-rw-r--r--src/mbgl/annotation/annotation_tile.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/annotation/annotation_tile.cpp b/src/mbgl/annotation/annotation_tile.cpp
index f3897ad3ea..39dbee408a 100644
--- a/src/mbgl/annotation/annotation_tile.cpp
+++ b/src/mbgl/annotation/annotation_tile.cpp
@@ -12,12 +12,12 @@ AnnotationTileFeature::AnnotationTileFeature(FeatureType type_, GeometryCollecti
properties(std::move(properties_)),
geometries(geometries_) {}
-mapbox::util::optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
+optional<Value> AnnotationTileFeature::getValue(const std::string& key) const {
auto it = properties.find(key);
if (it != properties.end()) {
- return mapbox::util::optional<Value>(it->second);
+ return optional<Value>(it->second);
}
- return mapbox::util::optional<Value>();
+ return optional<Value>();
}
util::ptr<GeometryTileLayer> AnnotationTile::getLayer(const std::string& name) const {
diff --git a/src/mbgl/annotation/annotation_tile.hpp b/src/mbgl/annotation/annotation_tile.hpp
index 3903e1b79f..1735b3eb81 100644
--- a/src/mbgl/annotation/annotation_tile.hpp
+++ b/src/mbgl/annotation/annotation_tile.hpp
@@ -15,7 +15,7 @@ public:
std::unordered_map<std::string, std::string> properties = {{}});
FeatureType getType() const override { return type; }
- mapbox::util::optional<Value> getValue(const std::string&) const override;
+ optional<Value> getValue(const std::string&) const override;
GeometryCollection getGeometries() const override { return geometries; }
const FeatureType type;