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:
Ben Clayton 2022-10-17 12:39:55 +00:00 committed by Dawn LUCI CQ
parent a4c148fe03
commit cd4b6c1479
2 changed files with 2 additions and 2 deletions

View File

@ -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?";

View File

@ -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