mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 05:47:36 +00:00
use switch statements for BASE_TYPE_ lookups (#7813)
This commit is contained in:
@@ -37,7 +37,7 @@ static std::string GenType(const Type &type, bool underlying = false) {
|
||||
return type.enum_def->defined_namespace->GetFullyQualifiedName(
|
||||
type.enum_def->name);
|
||||
} else {
|
||||
return kTypeNames[type.base_type];
|
||||
return TypeName(type.base_type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user