diff options
| author | Albert Astals Cid <[email protected]> | 2008-04-24 20:41:04 +0000 |
|---|---|---|
| committer | Albert Astals Cid <[email protected]> | 2008-04-24 20:41:04 +0000 |
| commit | f32987d719f4b396ea2679b59a712a8bc288b8d2 (patch) | |
| tree | 3d1f7b2e8bfeec7c898b32a7f63325bf3947554f /src/tagcloud/resourcetaggingwidget.cpp | |
| parent | 2a4f4c4b9ca1953f5859898b4e6bfc44cddd02be (diff) | |
avoid unnecessary copies by using const & in foreach
svn path=/trunk/KDE/kdebase/apps/; revision=800783
Diffstat (limited to 'src/tagcloud/resourcetaggingwidget.cpp')
| -rw-r--r-- | src/tagcloud/resourcetaggingwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagcloud/resourcetaggingwidget.cpp b/src/tagcloud/resourcetaggingwidget.cpp index 389342608..1ac829952 100644 --- a/src/tagcloud/resourcetaggingwidget.cpp +++ b/src/tagcloud/resourcetaggingwidget.cpp @@ -57,7 +57,7 @@ void Nepomuk::ResourceTaggingWidget::Private::showTaggingPopup( const QPoint& po { popup->showAllTags(); resourceTags = intersectTags( resources ); - Q_FOREACH( Tag tag, resourceTags ) { + Q_FOREACH( const Tag &tag, resourceTags ) { popup->setTagSelected( tag, true ); } |
