summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-06-26 13:29:01 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-06-26 13:30:12 (GMT)
commit068cfc2452d4b558f0276e371c67a821bc3bcfbd (patch)
tree18674720d8769d2aac5749d068e639c0038eb00a /src
parent4def9f12bec58e6c952361aac946fca80c27a3be (diff)
downloadQt-068cfc2452d4b558f0276e371c67a821bc3bcfbd.zip
Qt-068cfc2452d4b558f0276e371c67a821bc3bcfbd.tar.gz
Qt-068cfc2452d4b558f0276e371c67a821bc3bcfbd.tar.bz2
Silence trivial warnings
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp2
-rw-r--r--src/opengl/qpaintengine_opengl.cpp8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 37a88a3..4c35004 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -3353,6 +3353,7 @@ void QRasterPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textIte
break;
default:
Q_ASSERT(false);
+ depth = 0;
};
for(int i = 0; i < glyphs.size(); i++) {
@@ -3380,6 +3381,7 @@ void QRasterPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textIte
break;
default:
Q_ASSERT(false);
+ pitch = 0;
};
alphaPenBlt(glyph->data, pitch, depth,
diff --git a/src/opengl/qpaintengine_opengl.cpp b/src/opengl/qpaintengine_opengl.cpp
index 638bfb3..eda8d83 100644
--- a/src/opengl/qpaintengine_opengl.cpp
+++ b/src/opengl/qpaintengine_opengl.cpp
@@ -3690,10 +3690,10 @@ void QOpenGLPaintEngine::drawLines(const QLineF *lines, int lineCount)
bool useRects = false;
// scale or 90 degree rotation?
if (d->matrix.type() <= QTransform::TxTranslate
- || !d->cpen.isCosmetic()
- && (d->matrix.type() <= QTransform::TxScale
- || (d->matrix.type() == QTransform::TxRotate
- && d->matrix.m11() == 0 && d->matrix.m22() == 0))) {
+ || (!d->cpen.isCosmetic()
+ && (d->matrix.type() <= QTransform::TxScale
+ || (d->matrix.type() == QTransform::TxRotate
+ && d->matrix.m11() == 0 && d->matrix.m22() == 0)))) {
useRects = true;
for (int i = 0; i < lineCount; ++i) {
if (lines[i].p1().x() != lines[i].p2().x()