summaryrefslogtreecommitdiff
path: root/src/idl_gen_cpp.cpp
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2021-05-15 12:54:08 -0700
committerGitHub <noreply@github.com>2021-05-15 12:54:08 -0700
commitef0eb3701d9d765f4f0955d6f48ac07eb89bd8a4 (patch)
treef2060215e50b47d80d8d2ee35cdab1befb9796dd /src/idl_gen_cpp.cpp
parentf83ee1af597c5bdd474e4a9a1b99136758ef820b (diff)
downloadflatbuffers-ef0eb3701d9d765f4f0955d6f48ac07eb89bd8a4.tar.gz
flatbuffers-ef0eb3701d9d765f4f0955d6f48ac07eb89bd8a4.tar.bz2
flatbuffers-ef0eb3701d9d765f4f0955d6f48ac07eb89bd8a4.zip
Ran clang-format-all.sh. Removed default --style=file parameter (#6639)
* Ran clang-format-all.sh. Removed default --style=file parameter * Moved scripts to scripts/ location
Diffstat (limited to 'src/idl_gen_cpp.cpp')
-rw-r--r--src/idl_gen_cpp.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp
index 210a38f7..005e01d6 100644
--- a/src/idl_gen_cpp.cpp
+++ b/src/idl_gen_cpp.cpp
@@ -1009,10 +1009,9 @@ class CppGenerator : public BaseGenerator {
? bt - BASE_TYPE_UTYPE + ET_UTYPE
: ET_SEQUENCE;
int ref_idx = -1;
- std::string ref_name =
- type.struct_def
- ? WrapInNameSpace(*type.struct_def)
- : type.enum_def ? WrapInNameSpace(*type.enum_def) : "";
+ std::string ref_name = type.struct_def ? WrapInNameSpace(*type.struct_def)
+ : type.enum_def ? WrapInNameSpace(*type.enum_def)
+ : "";
if (!ref_name.empty()) {
auto rit = type_refs.begin();
for (; rit != type_refs.end(); ++rit) {