From 53ab65d81165daf4e23ce28fa0e42861724ea687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 19 Mar 2019 14:02:10 +0100 Subject: [core] use constexpr string concatenation for uniform/attribute names --- src/mbgl/gfx/attribute.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mbgl/gfx/attribute.hpp') 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; \ - static auto attributeName() { \ - return "a_" #name_; \ + static constexpr auto name() { \ + return #name_; \ } \ } -- cgit v1.2.1