From 32fac7cbe4d6b9c9434ffe0b2676df6dcf9931ee Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 13 Sep 2016 14:07:43 -0700 Subject: [core] Use optional to represent possible absence, not empty strings --- src/mbgl/layout/symbol_feature.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mbgl/layout/symbol_feature.hpp') 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 +#include #include @@ -9,8 +10,8 @@ namespace mbgl { class SymbolFeature { public: GeometryCollection geometry; - std::u32string label; - std::string sprite; + optional label; + optional sprite; std::size_t index; }; -- cgit v1.2.1