summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Junginger <greenrobot@users.noreply.github.com>2021-12-03 05:32:51 +0100
committerGitHub <noreply@github.com>2021-12-02 20:32:51 -0800
commitcffe0c4546a2ddc2370a626ac4f7ef3da9df6953 (patch)
tree478d84624e411ca3c0c4d65c9c37d28bfac64fc9 /include
parentfadd40e402c7d3861dae5820afac2eee58097cfe (diff)
downloadflatbuffers-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.h4
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_;