From cffe0c4546a2ddc2370a626ac4f7ef3da9df6953 Mon Sep 17 00:00:00 2001 From: Markus Junginger Date: Fri, 3 Dec 2021 05:32:51 +0100 Subject: FixedTypedVector: add const to ElementType() and size() (#6965) --- include/flatbuffers/flexbuffers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/flatbuffers/flexbuffers.h b/include/flatbuffers/flexbuffers.h index 9662a609..418bc68d 100644 --- a/include/flatbuffers/flexbuffers.h +++ b/include/flatbuffers/flexbuffers.h @@ -320,8 +320,8 @@ class FixedTypedVector : public Object { return data_ == FixedTypedVector::EmptyFixedTypedVector().data_; } - Type ElementType() { return type_; } - uint8_t size() { return len_; } + Type ElementType() const { return type_; } + uint8_t size() const { return len_; } private: Type type_; -- cgit v1.2.3