Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Wen Sun committed Dec 6, 2022
1 parent 75f62fa commit 20aa3fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/idl_gen_cpp.cpp
Expand Up @@ -2273,7 +2273,8 @@ class CppGenerator : public BaseGenerator {
code_ +=
" const {{INPUT_TYPE}} *curr_{{FIELD_NAME}} = {{FIELD_NAME}}();";
code_ +=
" for (flatbuffers::uoffset_t i = 0; i < curr_{{FIELD_NAME}}->size(); i++) {";
" for (flatbuffers::uoffset_t i = 0; i < "
"curr_{{FIELD_NAME}}->size(); i++) {";
code_ += " const auto lhs = curr_{{FIELD_NAME}}->Get(i);";
code_ += " const auto rhs = _{{FIELD_NAME}}->Get(i);";
code_ += " if(lhs != rhs) ";
Expand Down

0 comments on commit 20aa3fb

Please sign in to comment.