summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-08-21 21:38:25 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-08-21 21:38:25 (GMT)
commit9183a416c2e72e0a96c9f206b1bb2daae815875f (patch)
tree6760f6805974974acb24c062e769cf934fc81677 /src
parentbe77c837ff678ce62a24e84db5061ff027ffd3c0 (diff)
downloadQt-9183a416c2e72e0a96c9f206b1bb2daae815875f.zip
Qt-9183a416c2e72e0a96c9f206b1bb2daae815875f.tar.gz
Qt-9183a416c2e72e0a96c9f206b1bb2daae815875f.tar.bz2
Fixed unreferenced variable warning in Release mode.
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qs60style.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 2a88c9a..b05a1e9 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -426,13 +426,12 @@ QColor QS60StylePrivate::colorFromFrameGraphics(SkinFrameElements frame) const
Q_ASSERT(2*frameCornerHeight<32);
const QImage frameImage = QS60StylePrivate::frame(frame, QSize(32,32)).toImage();
+ Q_ASSERT(frameImage.bytesPerLine() > 0);
if (frameImage.isNull())
return Qt::black;
const QRgb *pixelRgb = (const QRgb*)frameImage.bits();
const int pixels = frameImage.numBytes()/sizeof(QRgb);
- const int bytesPerLine = frameImage.bytesPerLine();
- Q_ASSERT(bytesPerLine);
int estimatedRed = 0;
int estimatedGreen = 0;