[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Fri Oct 9 18:13:20 CEST 2009
SVN commit 1033166 by jmhoffmann:
Cache end iterator.
M +3 -4 MarbleWidgetInputHandler.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidgetInputHandler.cpp #1033165:1033166
@@ -499,10 +499,9 @@
= m_widget->model()->whichItemAt( mousePosition );
bool dataAction = false;
QPointer<AbstractDataPluginItem> toolTipItem;
- for ( QList<AbstractDataPluginItem *>::iterator it = dataItems.begin();
- it != dataItems.end() && dataAction == false && toolTipItem.isNull();
- ++it )
- {
+ QList<AbstractDataPluginItem *>::iterator it = dataItems.begin();
+ QList<AbstractDataPluginItem *>::iterator const end = dataItems.end();
+ for (; it != end && dataAction == false && toolTipItem.isNull(); ++it ) {
if ( (*it)->action() ) {
dataAction = true;
}
More information about the Marble-commits
mailing list