summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-07-27 10:52:13 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-07-27 10:56:18 (GMT)
commitb932141c7d59eaee5ae72c914d7fc7078b0a3608 (patch)
tree8c2a93d1064a0ccd218159942a41bc61302afd57 /src/gui
parentab7c405ac2e528eb23b2c56ef02bd33c42bc3256 (diff)
downloadQt-b932141c7d59eaee5ae72c914d7fc7078b0a3608.zip
Qt-b932141c7d59eaee5ae72c914d7fc7078b0a3608.tar.gz
Qt-b932141c7d59eaee5ae72c914d7fc7078b0a3608.tar.bz2
Remove an useless assert from comp_func_SourceOver_sse2()
The assert can never be true since const_alpha is unsigned. That line was triggering a warning on GCC. Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qdrawhelper_sse2.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper_sse2.cpp b/src/gui/painting/qdrawhelper_sse2.cpp
index b4ef23e..e090ae5 100644
--- a/src/gui/painting/qdrawhelper_sse2.cpp
+++ b/src/gui/painting/qdrawhelper_sse2.cpp
@@ -145,7 +145,6 @@ void qt_blend_rgb32_on_rgb32_sse2(uchar *destPixels, int dbpl,
void QT_FASTCALL comp_func_SourceOver_sse2(uint *destPixels, const uint *srcPixels, int length, uint const_alpha)
{
- Q_ASSERT(const_alpha >= 0);
Q_ASSERT(const_alpha < 256);
const quint32 *src = (const quint32 *) srcPixels;