diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-24 04:13:25 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-24 04:18:03 (GMT) |
commit | 0f3d7560855dd83b63ee090ee74b8770163e806c (patch) | |
tree | a08907d6028fb1e97ef31825d9977b4e274266b9 /src/declarative/graphicsitems/qdeclarativetext.cpp | |
parent | 0f32923c15739ad555e8915cba8afae9c05fd485 (diff) | |
download | Qt-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.cpp | 2 |
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()); } |