diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-09 10:41:44 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-11 12:30:54 +0000 |
commit | 1a7ebeb5cb03a13a80229890cde7b002c0bb05da (patch) | |
tree | 02a6a1508df610499295358b13fc617aca167b63 /src/tools | |
parent | 4b4bd6ab981fd92de05efdaeda6914e18b6c4c9a (diff) |
moc: Don't check for signalList size
We already check methodList, and as it is comprised of signalList,
slotList and methodList from cdef, this is redundant.
Change-Id: I0d1791f821134060aa20a8ea9b57f049b2701bf9
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/moc/generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp index fc1bafc7a7..016ac97228 100644 --- a/src/tools/moc/generator.cpp +++ b/src/tools/moc/generator.cpp @@ -1067,7 +1067,7 @@ void Generator::generateMetacall() fprintf(out, "\n#endif // QT_NO_PROPERTIES"); } - if (methodList.size() || cdef->signalList.size() || cdef->propertyList.size()) + if (methodList.size() || cdef->propertyList.size()) fprintf(out, "\n "); fprintf(out,"return _id;\n}\n"); } |