tint/sem: Add missing 'const' to static const char*
Change-Id: I01791122a2f33128909d0eaf4837bc32c86a653e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106160 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
a4c148fe03
commit
cd4b6c1479
|
@ -26,7 +26,7 @@ TINT_INSTANTIATE_TYPEINFO(tint::sem::Array);
|
||||||
|
|
||||||
namespace tint::sem {
|
namespace tint::sem {
|
||||||
|
|
||||||
const char* Array::kErrExpectedConstantCount =
|
const char* const Array::kErrExpectedConstantCount =
|
||||||
"array size is an override-expression, when expected a constant-expression.\n"
|
"array size is an override-expression, when expected a constant-expression.\n"
|
||||||
"Was the SubstituteOverride transform run?";
|
"Was the SubstituteOverride transform run?";
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ class Array final : public Castable<Array, Type> {
|
||||||
public:
|
public:
|
||||||
/// An error message string stating that the array count was expected to be a constant
|
/// An error message string stating that the array count was expected to be a constant
|
||||||
/// expression. Used by multiple writers and transforms.
|
/// expression. Used by multiple writers and transforms.
|
||||||
static const char* kErrExpectedConstantCount;
|
static const char* const kErrExpectedConstantCount;
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
/// @param element the array element type
|
/// @param element the array element type
|
||||||
|
|
Loading…
Reference in New Issue