diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-06-27 09:59:34 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-06-27 10:51:12 +0000 |
commit | 7fe90b93e5f29dc2174e2050e31ee03e814be84c (patch) | |
tree | fcea3185350b75b030622ce6954b89661ca85686 | |
parent | 6ce190d5b87a1702098f0f5351a0bd25339fe298 (diff) | |
download | qtactiveqt-7fe90b93e5f29dc2174e2050e31ee03e814be84c.tar.gz |
dumpcpp: Fix regression when creating function signatures.
Revert a part of change 1a7b140eb8f3f03354452c4669aabae2f141b9c8,
which removed the assignment to a different variable.
Task-number: QTBUG-54000
Change-Id: Ic15411259445afa50770487a37f8762fe57975e9
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | tools/dumpcpp/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp index 9dc65e8..0c9da72 100644 --- a/tools/dumpcpp/main.cpp +++ b/tools/dumpcpp/main.cpp @@ -419,7 +419,7 @@ void generateClassDecl(QTextStream &out, const QString &controlID, const QMetaOb if (slotSignature.endsWith("()")) { // no parameters - no names slotNamedSignature = slotSignature; } else { - slotNamedSignature.truncate(slotSignature.indexOf('(') + 1); + slotNamedSignature = slotSignature.left(slotSignature.indexOf('(') + 1); QByteArray slotSignatureTruncated(slotSignature.mid(slotNamedSignature.length())); slotSignatureTruncated.truncate(slotSignatureTruncated.length() - 1); |