summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-07 08:51:11 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-08-07 08:51:11 (GMT)
commit656551566c50705139535e36d5e5f3a784ab0fdd (patch)
tree6e155abd58050df644baf333ef9d5b65ab355523 /src/gui
parent7e2f40b8b98bab3cb5fd5343e496c3a268ce1c65 (diff)
downloadQt-656551566c50705139535e36d5e5f3a784ab0fdd.zip
Qt-656551566c50705139535e36d5e5f3a784ab0fdd.tar.gz
Qt-656551566c50705139535e36d5e5f3a784ab0fdd.tar.bz2
Fixes GCC compiler warning.
warning: suggest parentheses around assignment used as truth value
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 6fe4477..240d791 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -4816,7 +4816,7 @@ void QGraphicsItem::update(const QRectF &rect)
do {
if (item->d_ptr->graphicsEffect)
item->d_ptr->notifyInvalidated = 1;
- } while (item = item->d_ptr->parent);
+ } while ((item = item->d_ptr->parent));
if (CacheMode(d_ptr->cacheMode) != NoCache) {
QGraphicsItemCache *cache = d_ptr->extraItemCache();