[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Tue Aug 31 21:20:14 CEST 2010


SVN commit 1170388 by jmhoffmann:

AbstractScanlineTextureMapper: Constify setInterlaced and tileLevelInit.

 M  +1 -1      AbstractScanlineTextureMapper.cpp  
 M  +3 -3      AbstractScanlineTextureMapper.h  


--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.cpp #1170387:1170388
@@ -91,7 +91,7 @@
 }
 
 
-void AbstractScanlineTextureMapper::tileLevelInit( int tileLevel )
+void AbstractScanlineTextureMapper::tileLevelInit( const int tileLevel )
 {
     //    mDebug() << "Texture Level was set to: " << tileLevel;
     m_tileLevel = tileLevel;
--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.h #1170387:1170388
@@ -42,7 +42,7 @@
     virtual void mapTexture( ViewParams *viewParams ) = 0;
 
     bool interlaced() const;
-    void setInterlaced( bool enabled );
+    void setInterlaced( const bool enabled );
     int tileZoomLevel() const;
     GeoSceneTexture const * textureLayer() const;
 
@@ -74,7 +74,7 @@
 
     void selectTileLevel( ViewParams* viewParams );
     void detectMaxTileLevel();
-    void tileLevelInit( int tileLevel );
+    void tileLevelInit( const int tileLevel );
 
     int globalWidth() const;
     int globalHeight() const;
@@ -145,7 +145,7 @@
     return m_interlaced;
 }
 
-inline void AbstractScanlineTextureMapper::setInterlaced( bool enabled )
+inline void AbstractScanlineTextureMapper::setInterlaced( const bool enabled )
 {
     m_interlaced = enabled;
 }


More information about the Marble-commits mailing list