diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-26 10:36:25 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-26 11:44:48 -0700 |
commit | 878310b8912c83445ce7b12ee2b30a4489bf34f7 (patch) | |
tree | 826e2c7087f11fbfcb5556e98ee4e501548e19bb /src/mbgl/style/layout_property.hpp | |
parent | 64fe75b01109d38977b20c83773e6236e55905a8 (diff) | |
download | qtlocation-mapboxgl-878310b8912c83445ce7b12ee2b30a4489bf34f7.tar.gz |
[core] Simplify property parsing
This is a followup to #4811. Now that use of Function is consistent, we can have a single separate parseProperty template function that delegates to a parseConstant template function.
Diffstat (limited to 'src/mbgl/style/layout_property.hpp')
-rw-r--r-- | src/mbgl/style/layout_property.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/layout_property.hpp b/src/mbgl/style/layout_property.hpp index 894fc44467..dd3c032152 100644 --- a/src/mbgl/style/layout_property.hpp +++ b/src/mbgl/style/layout_property.hpp @@ -17,7 +17,7 @@ public: void parse(const char * name, const JSValue& layout) { if (layout.HasMember(name)) { - parsedValue = parseProperty<Function<T>>(name, layout[name]); + parsedValue = parseProperty<T>(name, layout[name]); } } |