diff options
author | Michael Brasser <mbrasser@ford.com> | 2017-12-07 15:37:59 -0600 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2017-12-08 17:24:04 +0000 |
commit | f101d41c8f7d2068e168f3bc967cde74aeae7f4c (patch) | |
tree | 40e7db59eee12ee2770126af03baa3fdfbe85625 /tools | |
parent | 6b33ec6277075e25d6e6fe5bcc7ab06f5b70fb96 (diff) |
Fix crash with templated enableRemoting
Change-Id: Idf8054d2a83c4e0a9d3caab2633cdbf7bc4e2204
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/repc/repcodegenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/repc/repcodegenerator.cpp b/tools/repc/repcodegenerator.cpp index 7dba030..4b87788 100644 --- a/tools/repc/repcodegenerator.cpp +++ b/tools/repc/repcodegenerator.cpp @@ -1075,7 +1075,7 @@ void RepCodeGenerator::generateSourceAPI(QTextStream &out, const ASTClass &astCl if (!propertyChangeIndex.isEmpty()) { out << QStringLiteral(" switch (index) {") << endl; for (int i = 0; i < propertyChangeIndex.size(); ++i) - out << QString::fromLatin1(" case %1: return %2;").arg(i).arg(propertyChangeIndex.at(i)) << endl; + out << QString::fromLatin1(" case %1: return %2;").arg(i).arg(propertyChangeIndex.at(i)-1) << endl; out << QStringLiteral(" }") << endl; } else out << QStringLiteral(" Q_UNUSED(index);") << endl; |