OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4293d
)
add break to default case in moc generated code
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 16 Dec 2019 23:49:29 +0000
(23:49 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 16 Dec 2019 23:49:29 +0000
(23:49 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/tools/moc/generator.cpp
patch
|
blob
|
history
diff --git
a/src/tools/moc/generator.cpp
b/src/tools/moc/generator.cpp
index
5332be3
..
e19a1f8
100644
(file)
--- a/
src/tools/moc/generator.cpp
+++ b/
src/tools/moc/generator.cpp
@@
-921,7
+921,7
@@
void Generator::generateStaticMetacall()
}
fprintf(out, " break;\n");
}
- fprintf(out, " default: ;\n");
+ fprintf(out, " default:
break
;\n");
fprintf(out, " }\n");
fprintf(out, " }");
needElse = true;