summaryrefslogtreecommitdiff
path: root/platform/android/src/style
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@users.noreply.github.com>2016-09-30 15:55:46 -0700
committerGitHub <noreply@github.com>2016-09-30 15:55:46 -0700
commitee4715a821437e6ed374231fad2ca6193eeac499 (patch)
treea1572535dae544aea91c963d3577a4ecb99c5e2c /platform/android/src/style
parent5b28ebbeca8f28e4a8d415911c51eb5070c3362a (diff)
downloadqtlocation-mapboxgl-ee4715a821437e6ed374231fad2ca6193eeac499.tar.gz
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.
Diffstat (limited to 'platform/android/src/style')
-rw-r--r--platform/android/src/style/conversion/types_string_values.hpp6
-rw-r--r--platform/android/src/style/conversion/types_string_values.hpp.ejs2
2 files changed, 4 insertions, 4 deletions
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;