From 14baf45c90a076d405e75cfc41874ffff862fb72 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 18 Jun 2020 19:51:43 +0100 Subject: [PATCH] Mark GetBufferMinAlignment() const (#5985) Like GetBufferPointer() and GetSize(), marks GetBufferMinAlignment function as const --- include/flatbuffers/flatbuffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 7c882127a..84110f6ad 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -1219,7 +1219,7 @@ class FlatBufferBuilder { /// you call Finish()). You can use this information if you need to embed /// a FlatBuffer in some other buffer, such that you can later read it /// without first having to copy it into its own buffer. - size_t GetBufferMinAlignment() { + size_t GetBufferMinAlignment() const { Finished(); return minalign_; }