[esnacc-dev] cxx-gen: omit extraneous brace

Message ID 20180911205145.20826-1-aconole@bytheb.org
State New
Delegated to: Aaron Conole
Headers show

Commit Message

Aaron Conole Sept. 11, 2018, 8:51 p.m.
Left over from the XML Print refactoring.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
---
 compiler/back-ends/c++-gen/gen-code.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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) {