From 47c545d9837a119bded57ad13deebf839cdd1368 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 10 Jun 2022 13:13:03 +0200 Subject: moc: Improve formatting of output If we are going to append an else clause, keep it on the same line as the closing brace. Change-Id: Idfa0eec49240086dc24268aebbf610d64a2f53d0 Reviewed-by: Fabian Kosmale --- src/tools/moc/generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/moc') diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index 3d633debd2..ca62b99f06 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -1236,7 +1236,7 @@ void Generator::generateStaticMetacall() fprintf(out, " *reinterpret_cast(_a[0]) = qRegisterMetaType< %s >(); break;\n", lastKey.constData()); } fprintf(out, " }\n"); - fprintf(out, " }\n"); + fprintf(out, " } "); isUsed_a = true; needElse = true; } -- cgit v1.2.3