From cd4b6c147912a1f0d3a198667a31e32e96950e51 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Mon, 17 Oct 2022 12:39:55 +0000 Subject: [PATCH] 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 Kokoro: Kokoro Commit-Queue: Dan Sinclair Auto-Submit: Ben Clayton --- src/tint/sem/array.cc | 2 +- src/tint/sem/array.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint/sem/array.cc b/src/tint/sem/array.cc index 31827cb8f6..74ef382cf5 100644 --- a/src/tint/sem/array.cc +++ b/src/tint/sem/array.cc @@ -26,7 +26,7 @@ TINT_INSTANTIATE_TYPEINFO(tint::sem::Array); namespace tint::sem { -const char* Array::kErrExpectedConstantCount = +const char* const Array::kErrExpectedConstantCount = "array size is an override-expression, when expected a constant-expression.\n" "Was the SubstituteOverride transform run?"; diff --git a/src/tint/sem/array.h b/src/tint/sem/array.h index 693549d9cd..ca66a16e64 100644 --- a/src/tint/sem/array.h +++ b/src/tint/sem/array.h @@ -111,7 +111,7 @@ class Array final : public Castable { public: /// An error message string stating that the array count was expected to be a constant /// expression. Used by multiple writers and transforms. - static const char* kErrExpectedConstantCount; + static const char* const kErrExpectedConstantCount; /// Constructor /// @param element the array element type