mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +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:
@@ -2278,7 +2278,7 @@ class CppGenerator : public BaseGenerator {
|
||||
code_ +=
|
||||
space + "const auto {{RHS}} = {{RHS_PREFIX}}.{{CURR_FIELD_NAME}}();";
|
||||
if (is_scalar) {
|
||||
code_ += space + "if ({{LHS}} != {{RHS}})";
|
||||
code_ += space + "if ({{LHS}} != {{RHS}})";
|
||||
code_ += space +
|
||||
" return static_cast<int>({{LHS}} > {{RHS}}) - "
|
||||
"static_cast<int>({{LHS}} < {{RHS}});";
|
||||
@@ -2343,7 +2343,7 @@ class CppGenerator : public BaseGenerator {
|
||||
} else if (is_array) {
|
||||
const auto &elem_type = field.value.type.VectorType();
|
||||
std::string input_type = "::flatbuffers::Array<" +
|
||||
GenTypeGet(elem_type, "", "", " ", false) +
|
||||
GenTypeGet(elem_type, "", "", "", false) +
|
||||
", " + NumToString(elem_type.fixed_length) + ">";
|
||||
code_.SetValue("INPUT_TYPE", input_type);
|
||||
code_ +=
|
||||
|
||||
Reference in New Issue
Block a user