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:
Wen Sun
2023-01-25 09:37:03 -08:00
committed by GitHub
parent 34c821f4ad
commit f5121615d9
2 changed files with 7 additions and 7 deletions

View File

@@ -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_ +=

View File

@@ -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));