mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-05 01:37:04 +00:00
Clean up extra white spaces (#7800)
* Clean up extra white spaces * update Co-authored-by: Wen Sun <sunwen@google.com> Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -2343,7 +2343,7 @@ class CppGenerator : public BaseGenerator {
|
|||||||
} else if (is_array) {
|
} else if (is_array) {
|
||||||
const auto &elem_type = field.value.type.VectorType();
|
const auto &elem_type = field.value.type.VectorType();
|
||||||
std::string input_type = "::flatbuffers::Array<" +
|
std::string input_type = "::flatbuffers::Array<" +
|
||||||
GenTypeGet(elem_type, "", "", " ", false) +
|
GenTypeGet(elem_type, "", "", "", false) +
|
||||||
", " + NumToString(elem_type.fixed_length) + ">";
|
", " + NumToString(elem_type.fixed_length) + ">";
|
||||||
code_.SetValue("INPUT_TYPE", input_type);
|
code_.SetValue("INPUT_TYPE", input_type);
|
||||||
code_ +=
|
code_ +=
|
||||||
|
|||||||
@@ -506,8 +506,8 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Grain FLATBUFFERS_FINAL_CLASS {
|
|||||||
bool KeyCompareLessThan(const Grain * const o) const {
|
bool KeyCompareLessThan(const Grain * const o) const {
|
||||||
return KeyCompareWithValue(o->a()) < 0;
|
return KeyCompareWithValue(o->a()) < 0;
|
||||||
}
|
}
|
||||||
int KeyCompareWithValue(const ::flatbuffers::Array<keyfield::sample::Rice , 3> *_a) const {
|
int KeyCompareWithValue(const ::flatbuffers::Array<keyfield::sample::Rice, 3> *_a) const {
|
||||||
const ::flatbuffers::Array<keyfield::sample::Rice , 3> *curr_a = a();
|
const ::flatbuffers::Array<keyfield::sample::Rice, 3> *curr_a = a();
|
||||||
for (::flatbuffers::uoffset_t i = 0; i < curr_a->size(); i++) {
|
for (::flatbuffers::uoffset_t i = 0; i < curr_a->size(); i++) {
|
||||||
const auto &lhs_a = *(curr_a->Get(i));
|
const auto &lhs_a = *(curr_a->Get(i));
|
||||||
const auto &rhs_a = *(_a->Get(i));
|
const auto &rhs_a = *(_a->Get(i));
|
||||||
|
|||||||
Reference in New Issue
Block a user