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

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


SVN commit 1170385 by jmhoffmann:

AbstractScanlineTextureMapper: constify pixelValue and pixelValueF.

 M  +2 -4      AbstractScanlineTextureMapper.cpp  
 M  +2 -2      AbstractScanlineTextureMapper.h  


--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.cpp #1170384:1170385
@@ -115,8 +115,7 @@
 }
 
 
-void AbstractScanlineTextureMapper::pixelValueF(qreal lon,
-                                               qreal lat, 
+void AbstractScanlineTextureMapper::pixelValueF( const qreal lon, const qreal lat,
                                                QRgb* scanLine )
 {
     // The same method using integers performs about 33% faster.
@@ -148,8 +147,7 @@
     }
 }
 
-void AbstractScanlineTextureMapper::pixelValue(qreal lon,
-                                               qreal lat, 
+void AbstractScanlineTextureMapper::pixelValue( const qreal lon, const qreal lat,
                                                QRgb* scanLine )
 {
     // The same method using integers performs about 33% faster.
--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.h #1170384:1170385
@@ -54,9 +54,9 @@
     void notifyMapChanged();
     
  protected:
-    void pixelValueF( qreal lon, qreal lat, 
+    void pixelValueF( const qreal lon, const qreal lat,
                      QRgb* scanLine );
-    void pixelValue( qreal lon, qreal lat, 
+    void pixelValue( const qreal lon, const qreal lat,
                      QRgb* scanLine );
 
     void pixelValueApproxF(const qreal& lon, const qreal& lat,


More information about the Marble-commits mailing list