From ee4715a821437e6ed374231fad2ca6193eeac499 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Fri, 30 Sep 2016 15:55:46 -0700 Subject: update style generation code for new style spec enum values docs (#6508) Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them. --- platform/android/src/style/conversion/types_string_values.hpp | 6 +++--- platform/android/src/style/conversion/types_string_values.hpp.ejs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'platform/android/src/style') diff --git a/platform/android/src/style/conversion/types_string_values.hpp b/platform/android/src/style/conversion/types_string_values.hpp index d44de733d4..b42ca52acd 100644 --- a/platform/android/src/style/conversion/types_string_values.hpp +++ b/platform/android/src/style/conversion/types_string_values.hpp @@ -95,15 +95,15 @@ namespace conversion { case mbgl::style::IconTextFitType::None: return "none"; break; - case mbgl::style::IconTextFitType::Both: - return "both"; - break; case mbgl::style::IconTextFitType::Width: return "width"; break; case mbgl::style::IconTextFitType::Height: return "height"; break; + case mbgl::style::IconTextFitType::Both: + return "both"; + break; default: throw std::runtime_error("Not implemented"); } diff --git a/platform/android/src/style/conversion/types_string_values.hpp.ejs b/platform/android/src/style/conversion/types_string_values.hpp.ejs index db90a614f5..39021d390d 100644 --- a/platform/android/src/style/conversion/types_string_values.hpp.ejs +++ b/platform/android/src/style/conversion/types_string_values.hpp.ejs @@ -31,7 +31,7 @@ namespace conversion { //<%- property.name %> inline std::string toString(mbgl::style::<%- propertyNativeType(property) %> value) { switch (value) { -<% for (const value of property.values) { -%> +<% for (const value in property.values) { -%> case mbgl::style::<%- propertyNativeType(property) %>::<%- camelize(value) %>: return "<%- value %>"; break; -- cgit v1.2.1