From patchwork Tue Sep 11 20:51:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [esnacc-dev] cxx-gen: omit extraneous brace X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 35 X-Patchwork-Delegate: aconole@bytheb.org Message-Id: <20180911205145.20826-1-aconole@bytheb.org> To: dev@lists.esnacc.org Date: Tue, 11 Sep 2018 16:51:45 -0400 From: Aaron Conole List-Id: eSNACC Development discussion Left over from the XML Print refactoring. Signed-off-by: Aaron Conole --- 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) {