diff options
author | Markus Junginger <greenrobot@users.noreply.github.com> | 2021-12-03 05:32:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 20:32:51 -0800 |
commit | cffe0c4546a2ddc2370a626ac4f7ef3da9df6953 (patch) | |
tree | 478d84624e411ca3c0c4d65c9c37d28bfac64fc9 /include | |
parent | fadd40e402c7d3861dae5820afac2eee58097cfe (diff) | |
download | flatbuffers-cffe0c4546a2ddc2370a626ac4f7ef3da9df6953.tar.gz flatbuffers-cffe0c4546a2ddc2370a626ac4f7ef3da9df6953.tar.bz2 flatbuffers-cffe0c4546a2ddc2370a626ac4f7ef3da9df6953.zip |
FixedTypedVector: add const to ElementType() and size() (#6965)
Diffstat (limited to 'include')
-rw-r--r-- | include/flatbuffers/flexbuffers.h | 4 |
1 files changed, 2 insertions, 2 deletions
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_; |