mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
Fixed clang-tidy warnings.
Change-Id: Ib94ef29254c116b60e4ff298baa2ce323ac9655c Tested: on Linux.
This commit is contained in:
@@ -1772,7 +1772,7 @@ class CppGenerator : public BaseGenerator {
|
||||
// For optional fields, check to see if there actually is any data
|
||||
// in _o->field before attempting to access it.
|
||||
if (!field.required) {
|
||||
code = value + ".size() ? " + code + " : 0";
|
||||
code = value + ".empty() ? 0 : " + code;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user