summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetext.cpp
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-08-24 04:13:25 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-08-24 04:18:03 (GMT)
commit0f3d7560855dd83b63ee090ee74b8770163e806c (patch)
treea08907d6028fb1e97ef31825d9977b4e274266b9 /src/declarative/graphicsitems/qdeclarativetext.cpp
parent0f32923c15739ad555e8915cba8afae9c05fd485 (diff)
downloadQt-0f3d7560855dd83b63ee090ee74b8770163e806c.zip
Qt-0f3d7560855dd83b63ee090ee74b8770163e806c.tar.gz
Qt-0f3d7560855dd83b63ee090ee74b8770163e806c.tar.bz2
Fix few declarative code issues discovered by static code analysis
Task-number: Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetext.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index fcd112e..b96b43c 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -1218,7 +1218,7 @@ void QDeclarativeText::mousePressEvent(QGraphicsSceneMouseEvent *event)
if (!d->richText || !d->doc || d->doc->documentLayout()->anchorAt(event->pos()).isEmpty()) {
event->setAccepted(false);
- d->activeLink = QString();
+ d->activeLink.clear();
} else {
d->activeLink = d->doc->documentLayout()->anchorAt(event->pos());
}