mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 23:17:27 +00:00
Remove unused variables (#5382)
- Fix GenerateTextFromTable (aliasing typo) - Fix unused variable in idl_gen_dart.cpp - Fix std::string passing (should be non-const value or const-reference) - Remove unused variables
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
7d7d796cd0
commit
7a63792929
@@ -309,10 +309,10 @@ bool GenerateTextFromTable(const Parser &parser, const void *table,
|
||||
if (struct_def == nullptr) {
|
||||
return false;
|
||||
}
|
||||
auto text = *_text;
|
||||
auto &text = *_text;
|
||||
text.reserve(1024); // Reduce amount of inevitable reallocs.
|
||||
auto root = static_cast<const Table *>(table);
|
||||
if (!GenStruct(*struct_def, root, 0, parser.opts, _text)) {
|
||||
if (!GenStruct(*struct_def, root, 0, parser.opts, &text)) {
|
||||
return false;
|
||||
}
|
||||
text += NewLine(parser.opts);
|
||||
|
||||
Reference in New Issue
Block a user