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 | |
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')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview.cpp | 2 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetext.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp index ec1b6cf..2e2e08c 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview.cpp +++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp @@ -983,7 +983,7 @@ void QDeclarativeListViewPrivate::updateSections() void QDeclarativeListViewPrivate::updateCurrentSection() { if (!sectionCriteria || visibleItems.isEmpty()) { - currentSection = QString(); + currentSection.clear(); return; } int index = 0; 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()); } |