summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/attribute.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-19 14:02:10 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-20 15:40:47 +0100
commit53ab65d81165daf4e23ce28fa0e42861724ea687 (patch)
tree402a535476210bf3527b487011a0f7ccb78ef73d /src/mbgl/gfx/attribute.hpp
parent0ad2375e1047353fc65fabce3ac9123dc095179e (diff)
downloadqtlocation-mapboxgl-53ab65d81165daf4e23ce28fa0e42861724ea687.tar.gz
[core] use constexpr string concatenation for uniform/attribute names
Diffstat (limited to 'src/mbgl/gfx/attribute.hpp')
-rw-r--r--src/mbgl/gfx/attribute.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gfx/attribute.hpp b/src/mbgl/gfx/attribute.hpp
index aff27d9c1d..f5188ccfdb 100644
--- a/src/mbgl/gfx/attribute.hpp
+++ b/src/mbgl/gfx/attribute.hpp
@@ -14,8 +14,8 @@
#define MBGL_DEFINE_ATTRIBUTE(type_, n_, name_) \
struct name_ { \
using Type = ::mbgl::gfx::AttributeType<type_, n_>; \
- static auto attributeName() { \
- return "a_" #name_; \
+ static constexpr auto name() { \
+ return #name_; \
} \
}