summaryrefslogtreecommitdiffstats
path: root/src/tools/moc
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-09-08 19:42:31 (GMT)
committeraavit <qt-info@nokia.com>2011-09-08 19:42:31 (GMT)
commita2c2c71ecd84e90f72697dfd57544c8d506c78e2 (patch)
treec5e31ff16e2471d33a124a6a37f4e48acdacd235 /src/tools/moc
parent6326227674efa85c1a5320141041110d211efc75 (diff)
parent260005374b9b930aa583cd117aba96f8f4b34131 (diff)
downloadQt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.zip
Qt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.tar.gz
Qt-a2c2c71ecd84e90f72697dfd57544c8d506c78e2.tar.bz2
Merge remote-tracking branch 'qt-mainline/4.8'
Conflicts: tools/qvfb/qvfbshmem.cpp
Diffstat (limited to 'src/tools/moc')
-rw-r--r--src/tools/moc/moc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/moc/moc.cpp b/src/tools/moc/moc.cpp
index 13f57f5..9309db1 100644
--- a/src/tools/moc/moc.cpp
+++ b/src/tools/moc/moc.cpp
@@ -216,8 +216,8 @@ Type Moc::parseType()
QByteArray templ = lexemUntil(RANGLE);
for (int i = 0; i < templ.size(); ++i) {
type.name += templ.at(i);
- if ((templ.at(i) == '<' && i < templ.size()-1 && templ.at(i+1) == ':')
- || (templ.at(i) == '>' && i < templ.size()-1 && templ.at(i+1) == '>')) {
+ if ((templ.at(i) == '<' && i+1 < templ.size() && templ.at(i+1) == ':')
+ || (templ.at(i) == '>' && i+1 < templ.size() && templ.at(i+1) == '>')) {
type.name += ' ';
}
}