[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Fri Aug 27 00:17:19 CEST 2010
SVN commit 1168538 by jmhoffmann:
StackedTileLoader::updateTextureLayers: No need to compute hash twice.
M +4 -4 StackedTileLoader.cpp
--- trunk/KDE/kdeedu/marble/src/lib/StackedTileLoader.cpp #1168537:1168538
@@ -466,15 +466,15 @@
continue;
}
- uint hash = qHash( mapThemeId );
- if ( d->m_sceneLayers.contains( hash ) ) {
+ uint const mapThemeIdHash = qHash( mapThemeId );
+ if ( d->m_sceneLayers.contains( mapThemeIdHash ) ) {
mDebug() << "StackedTileLoader::updateTextureLayers:"
- << hash << mapThemeId
+ << mapThemeIdHash << mapThemeId
<< "already exists";
continue;
}
- d->m_sceneLayers.insert( qHash( mapThemeId ), sceneLayer );
+ d->m_sceneLayers.insert( mapThemeIdHash, sceneLayer );
// find all texture layers
QVector<GeoSceneAbstractDataset *> layers = sceneLayer->datasets();
More information about the Marble-commits
mailing list