[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Tue Aug 31 21:20:05 CEST 2010
SVN commit 1170386 by jmhoffmann:
AbstractScanlineTextureMapper: Pass qreal arguments by value and not by (const) reference.
M +4 -6 AbstractScanlineTextureMapper.cpp
M +2 -2 AbstractScanlineTextureMapper.h
--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.cpp #1170385:1170386
@@ -190,9 +190,8 @@
// This method will do by far most of the calculations for the
// texturemapping, so we move towards integer math to improve speed.
-void AbstractScanlineTextureMapper::pixelValueApproxF(const qreal& lon,
- const qreal& lat, QRgb *scanLine,
- int n )
+void AbstractScanlineTextureMapper::pixelValueApproxF( const qreal lon, const qreal lat,
+ QRgb *scanLine, int n )
{
// stepLon/Lat: Distance between two subsequent approximated positions
@@ -332,9 +331,8 @@
}
-void AbstractScanlineTextureMapper::pixelValueApprox(const qreal& lon,
- const qreal& lat, QRgb *scanLine,
- int n )
+void AbstractScanlineTextureMapper::pixelValueApprox( const qreal lon, const qreal lat,
+ QRgb *scanLine, int n )
{
// stepLon/Lat: Distance between two subsequent approximated positions
--- trunk/KDE/kdeedu/marble/src/lib/AbstractScanlineTextureMapper.h #1170385:1170386
@@ -59,9 +59,9 @@
void pixelValue( const qreal lon, const qreal lat,
QRgb* scanLine );
- void pixelValueApproxF(const qreal& lon, const qreal& lat,
+ void pixelValueApproxF( const qreal lon, const qreal lat,
QRgb *scanLine, int n );
- void pixelValueApprox(const qreal& lon, const qreal& lat,
+ void pixelValueApprox( const qreal lon, const qreal lat,
QRgb *scanLine, int n );
static int interpolationStep( ViewParams *viewParams );
More information about the Marble-commits
mailing list