aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorWouter van Oortmerssen <wvo@google.com>2014-11-19 11:03:32 -0800
committerWouter van Oortmerssen <wvo@google.com>2014-11-19 13:41:15 -0800
commit285501f7bef048c21d0424653637f6f295b7d4fb (patch)
tree0db8447afa0aaeee4a1ecd1c7e7b8d530d680626 /samples
parent0952143971bdbb5ef20dae8a865e811a0e31b4b3 (diff)
downloadflatbuffers-285501f7bef048c21d0424653637f6f295b7d4fb.tar.gz
Added "final" to generated types to block inheritance.
People sometimes accidentally inherit from these types. Bug: 18224703 Change-Id: Ia09489a834ac4941f9b4a46f240cbdcf456f03a1 Tested: on Windows and Linux.
Diffstat (limited to 'samples')
-rwxr-xr-xsamples/monster_generated.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/monster_generated.h b/samples/monster_generated.h
index 4fb6a179..17d95d3f 100755
--- a/samples/monster_generated.h
+++ b/samples/monster_generated.h
@@ -37,7 +37,7 @@ inline const char **EnumNamesAny() {
inline const char *EnumNameAny(Any e) { return EnumNamesAny()[e]; }
-inline bool VerifyAny(flatbuffers::Verifier &verifier, const void *union_obj, uint8_t type);
+inline bool VerifyAny(flatbuffers::Verifier &verifier, const void *union_obj, Any type);
MANUALLY_ALIGNED_STRUCT(4) Vec3 {
private:
@@ -110,7 +110,7 @@ inline flatbuffers::Offset<Monster> CreateMonster(flatbuffers::FlatBufferBuilder
return builder_.Finish();
}
-inline bool VerifyAny(flatbuffers::Verifier &verifier, const void *union_obj, uint8_t type) {
+inline bool VerifyAny(flatbuffers::Verifier &verifier, const void *union_obj, Any type) {
switch (type) {
case Any_NONE: return true;
case Any_Monster: return verifier.VerifyTable(reinterpret_cast<const Monster *>(union_obj));