summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_feature.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-13 14:07:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-16 09:00:55 -0700
commit32fac7cbe4d6b9c9434ffe0b2676df6dcf9931ee (patch)
treef30c4ca5763b5ab796e11b4ecfc1ec5f98e82a37 /src/mbgl/layout/symbol_feature.hpp
parenta8dd1bbbb8f9053923179fd45b2dfcbb86e3f474 (diff)
downloadqtlocation-mapboxgl-32fac7cbe4d6b9c9434ffe0b2676df6dcf9931ee.tar.gz
[core] Use optional to represent possible absence, not empty strings
Diffstat (limited to 'src/mbgl/layout/symbol_feature.hpp')
-rw-r--r--src/mbgl/layout/symbol_feature.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/layout/symbol_feature.hpp b/src/mbgl/layout/symbol_feature.hpp
index 3b4eb78d86..fa5af97861 100644
--- a/src/mbgl/layout/symbol_feature.hpp
+++ b/src/mbgl/layout/symbol_feature.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <mbgl/tile/geometry_tile_data.hpp>
+#include <mbgl/util/optional.hpp>
#include <string>
@@ -9,8 +10,8 @@ namespace mbgl {
class SymbolFeature {
public:
GeometryCollection geometry;
- std::u32string label;
- std::string sprite;
+ optional<std::u32string> label;
+ optional<std::string> sprite;
std::size_t index;
};