summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorSinan Tanilkan <sinan.tanilkan@nokia.com>2011-09-21 11:45:02 (GMT)
committerSinan Tanilkan <sinan.tanilkan@nokia.com>2011-09-21 11:45:02 (GMT)
commit160b82950ec53d3a0392df0fd18ac6856bfecbcf (patch)
tree1bdae6efe3fbcb7f25e0ce91884f83e1cdf68189 /src/tools
parent8ba781b01e900148fec2e9d26485369b3295487f (diff)
parent085bd7cf2d76f9acd548120f859201b014970a72 (diff)
downloadQt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.zip
Qt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.tar.gz
Qt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.tar.bz2
Merge branch '4.8' into earth-staging-master
Conflicts: dist/changes-4.8.0
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/moc/generator.cpp2
-rw-r--r--src/tools/moc/moc.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
index 72fda2d..b1bcab7 100644
--- a/src/tools/moc/generator.cpp
+++ b/src/tools/moc/generator.cpp
@@ -574,7 +574,7 @@ void Generator::generateProperties()
strreg(p.name),
strreg(p.type));
if (!(flags >> 24) && isQRealType(p.type))
- fprintf(out, "(QMetaType::QReal << 24) | ");
+ fprintf(out, "((uint)QMetaType::QReal << 24) | ");
fprintf(out, "0x%.8x,\n", flags);
}
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 += ' ';
}
}