aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-05-14 13:50:46 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-14 13:57:37 +0200
commitfd5c099eea26a8101e2cc0dc3237d1250158b895 (patch)
tree562e5f40ee504c9fdc4feb23070836150f70af63 /src/quick/scenegraph
parenta1151929fffc765e128d72d170342020b34dd0b3 (diff)
QtQuick: Fix string related warnings, single character strings.
- Fix warnings about truncation from size_t to int (MSVC 2010, 64bit). - Remove single character strings. Change-Id: Iaf4406e4e04d55d2d8b762f3433269868842a6f9 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/coreapi/qsgnode.cpp12
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp2
-rw-r--r--src/quick/scenegraph/qsgshareddistancefieldglyphcache.cpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgnode.cpp b/src/quick/scenegraph/coreapi/qsgnode.cpp
index 496a8d0fde..a10e963c46 100644
--- a/src/quick/scenegraph/coreapi/qsgnode.cpp
+++ b/src/quick/scenegraph/coreapi/qsgnode.cpp
@@ -1193,7 +1193,7 @@ QDebug operator<<(QDebug d, const QSGGeometryNode *n)
d << "effect=" << n->material() << "type=" << n->material()->type();
- d << ")";
+ d << ')';
#ifdef QML_RUNTIME_TESTING
d << n->description;
#endif
@@ -1214,7 +1214,7 @@ QDebug operator<<(QDebug d, const QSGClipNode *n)
d << "is rect?" << (n->isRectangular() ? "yes" : "no");
- d << ")";
+ d << ')';
#ifdef QML_RUNTIME_TESTING
d << n->description;
#endif
@@ -1241,7 +1241,7 @@ QDebug operator<<(QDebug d, const QSGTransformNode *n)
d << n->description;
#endif
d << "dirty=" << hex << (int) n->dirtyState() << dec << (n->isSubtreeBlocked() ? "*BLOCKED*" : "");
- d << ")";
+ d << ')';
return d;
}
@@ -1260,7 +1260,7 @@ QDebug operator<<(QDebug d, const QSGOpacityNode *n)
d << n->description;
#endif
d << "dirty=" << hex << (int) n->dirtyState() << dec;
- d << ")";
+ d << ')';
return d;
}
@@ -1276,7 +1276,7 @@ QDebug operator<<(QDebug d, const QSGRootNode *n)
#ifdef QML_RUNTIME_TESTING
d << n->description;
#endif
- d << ")";
+ d << ')';
return d;
}
@@ -1312,7 +1312,7 @@ QDebug operator<<(QDebug d, const QSGNode *n)
#ifdef QML_RUNTIME_TESTING
d << n->description;
#endif
- d << ")";
+ d << ')';
break;
}
return d;
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 379a81ecdf..c7a6b323f5 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -310,7 +310,7 @@ QSGDistanceFieldGlyphCache *QSGContext::distanceFieldGlyphCache(const QRawFont &
if (font.style() != QFont::StyleNormal)
keyName += QByteArray(" I");
if (font.weight() != QFont::Normal)
- keyName += " " + QByteArray::number(font.weight());
+ keyName += ' ' + QByteArray::number(font.weight());
keyName += QByteArray(" DF");
QPlatformSharedGraphicsCache *sharedGraphicsCache =
platformIntegration->createPlatformSharedGraphicsCache(keyName);
diff --git a/src/quick/scenegraph/qsgshareddistancefieldglyphcache.cpp b/src/quick/scenegraph/qsgshareddistancefieldglyphcache.cpp
index a204550fe2..cece95d85a 100644
--- a/src/quick/scenegraph/qsgshareddistancefieldglyphcache.cpp
+++ b/src/quick/scenegraph/qsgshareddistancefieldglyphcache.cpp
@@ -401,7 +401,7 @@ void QSGSharedDistanceFieldGlyphCache::saveTexture(GLuint textureId, int width,
for (int i=0; i<width*height; ++i)
dest[i] = qRgba(0xff, 0xff, 0xff, data[i]);
- QByteArray fileName = m_cacheId + " " + QByteArray::number(textureId);
+ QByteArray fileName = m_cacheId + ' ' + QByteArray::number(textureId);
fileName = fileName.replace('/', '_').replace(' ', '_') + ".png";
image.save(QString::fromLocal8Bit(fileName));