summaryrefslogtreecommitdiff
path: root/src/mbgl/style/property_parsing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/property_parsing.cpp')
-rw-r--r--src/mbgl/style/property_parsing.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/style/property_parsing.cpp b/src/mbgl/style/property_parsing.cpp
index 9f60ddf3b6..ecfa85595d 100644
--- a/src/mbgl/style/property_parsing.cpp
+++ b/src/mbgl/style/property_parsing.cpp
@@ -188,19 +188,19 @@ optional<TextTransformType> parseConstant<TextTransformType>(const char* name, c
return { TextTransformTypeClass({ value.GetString(), value.GetStringLength() }) };
}
-MBGL_DEFINE_ENUM_CLASS(RotationAlignmentTypeClass, RotationAlignmentType, {
- { RotationAlignmentType::Map, "map" },
- { RotationAlignmentType::Viewport, "viewport" },
+MBGL_DEFINE_ENUM_CLASS(AlignmentTypeClass, AlignmentType, {
+ { AlignmentType::Map, "map" },
+ { AlignmentType::Viewport, "viewport" },
});
template <>
-optional<RotationAlignmentType> parseConstant<RotationAlignmentType>(const char* name, const JSValue& value) {
+optional<AlignmentType> parseConstant<AlignmentType>(const char* name, const JSValue& value) {
if (!value.IsString()) {
Log::Warning(Event::ParseStyle, "value of '%s' must be a string", name);
return {};
}
- return { RotationAlignmentTypeClass({ value.GetString(), value.GetStringLength() }) };
+ return { AlignmentTypeClass({ value.GetString(), value.GetStringLength() }) };
}
template <>