[esnacc-dev] [PATCH] cxx-gen: omit extraneous brace
Aaron Conole
aconole at bytheb.org
Tue Sep 11 20:51:45 UTC 2018
Left over from the XML Print refactoring.
Signed-off-by: Aaron Conole <aconole at bytheb.org>
---
compiler/back-ends/c++-gen/gen-code.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/back-ends/c++-gen/gen-code.c b/compiler/back-ends/c++-gen/gen-code.c
index 395b424..c4469a7 100644
--- a/compiler/back-ends/c++-gen/gen-code.c
+++ b/compiler/back-ends/c++-gen/gen-code.c
@@ -3743,7 +3743,7 @@ PrintCxxSetDefCode (FILE *src, FILE *hdr, ModuleList *mods, Module *m,
td->cxxTypeDefInfo->className);
fprintf(src, "{\n");
fprintf(src, " const char *tagName = typeName();\n");
- fprintf(src, " if (lpszTitle) {\n");
+ fprintf(src, " if (lpszTitle)\n");
fprintf(src, " tagName = lpszTitle;\n");
fprintf(src, " os << \"<\" << tagName << \">\";\n");
FOR_EACH_LIST_ELMT (e, set->basicType->a.set) {
--
2.14.3
More information about the dev
mailing list