summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-07 09:58:04 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-10-07 10:44:42 (GMT)
commit038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c (patch)
tree5f479a3dbf2254ab8e9992695ab005f98eccf884 /src
parente9e37393a4c1cfc43b5dca94a832d73cd009d73e (diff)
downloadQt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.zip
Qt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.tar.gz
Qt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.tar.bz2
Fixing warnings on GCC... (I)
... by establishing a default behaviour for the switch statements that follow. Reviewed-by: Kim
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qdrawutil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawutil.cpp b/src/gui/painting/qdrawutil.cpp
index c20d8d8..1182b9a 100644
--- a/src/gui/painting/qdrawutil.cpp
+++ b/src/gui/painting/qdrawutil.cpp
@@ -1147,8 +1147,8 @@ void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargin
yTarget[rows - 1] = targetCenterBottom;
yTarget[rows] = targetRect.top() + targetRect.height();
- qreal dx;
- qreal dy;
+ qreal dx = targetCenterWidth;
+ qreal dy = targetCenterHeight;
switch (rules.horizontal) {
case Qt::StretchTile: