mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 17:30:00 +00:00
Add missing const (#7401)
This commit is contained in:
@@ -164,7 +164,7 @@ struct Type {
|
|||||||
enum_def(_ed),
|
enum_def(_ed),
|
||||||
fixed_length(_fixed_length) {}
|
fixed_length(_fixed_length) {}
|
||||||
|
|
||||||
bool operator==(const Type &o) {
|
bool operator==(const Type &o) const {
|
||||||
return base_type == o.base_type && element == o.element &&
|
return base_type == o.base_type && element == o.element &&
|
||||||
struct_def == o.struct_def && enum_def == o.enum_def;
|
struct_def == o.struct_def && enum_def == o.enum_def;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user