mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 22:56:27 +00:00
Fix flatc code gen.
Mutable functions should return a non-const reference to the member variable. Change-Id: I833077d2c9a38a5d71868e43aca6b250d79b6625
This commit is contained in:
Binary file not shown.
@@ -243,7 +243,7 @@ MANUALLY_ALIGNED_STRUCT(16) Vec3 FLATBUFFERS_FINAL_CLASS {
|
||||
const Test &test3() const {
|
||||
return test3_;
|
||||
}
|
||||
const Test &mutable_test3() {
|
||||
Test &mutable_test3() {
|
||||
return test3_;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user