summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-20 23:47:26 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-20 23:47:26 (GMT)
commit4c20d68f025a04eeea8614a6603a7ef267929092 (patch)
tree155aeaad7f330519bd531f88c9fb5400cd8596c6
parent9d3bc52f0bfae57d2ce54ca22e33e91e2684ecc0 (diff)
Pass arguments of simple type (enum, bool, int, float) by value
-rw-r--r--src/lib/marble/MarbleMap.cpp2
-rw-r--r--src/lib/marble/MarbleMap.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataIconStyle.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataIconStyle.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataImagePyramid.cpp8
-rw-r--r--src/lib/marble/geodata/data/GeoDataImagePyramid.h8
-rw-r--r--src/lib/marble/geodata/data/GeoDataLabelStyle.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataLabelStyle.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataLineStyle.cpp4
-rw-r--r--src/lib/marble/geodata/data/GeoDataLineStyle.h4
-rw-r--r--src/lib/marble/geodata/data/GeoDataNetworkLinkControl.cpp6
-rw-r--r--src/lib/marble/geodata/data/GeoDataNetworkLinkControl.h6
-rw-r--r--src/lib/marble/geodata/data/GeoDataPolyStyle.cpp4
-rw-r--r--src/lib/marble/geodata/data/GeoDataPolyStyle.h4
-rw-r--r--src/lib/marble/geodata/data/GeoDataScreenOverlay.cpp12
-rw-r--r--src/lib/marble/geodata/data/GeoDataScreenOverlay.h8
-rw-r--r--src/lib/marble/geodata/data/GeoDataVec2.cpp2
-rw-r--r--src/lib/marble/geodata/data/GeoDataVec2.h2
-rw-r--r--src/lib/marble/geodata/data/GeoDataViewVolume.cpp10
-rw-r--r--src/lib/marble/geodata/data/GeoDataViewVolume.h10
-rw-r--r--src/lib/marble/geodata/scene/GeoSceneGeodata.cpp2
-rw-r--r--src/lib/marble/geodata/scene/GeoSceneGeodata.h2
-rw-r--r--src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.cpp4
-rw-r--r--src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h4
24 files changed, 54 insertions, 58 deletions
diff --git a/src/lib/marble/MarbleMap.cpp b/src/lib/marble/MarbleMap.cpp
index c8e3e90..68f9a0a 100644
--- a/src/lib/marble/MarbleMap.cpp
+++ b/src/lib/marble/MarbleMap.cpp
@@ -704,7 +704,7 @@ quint64 MarbleMap::volatileTileCacheLimit() const
}
-void MarbleMap::rotateBy( const qreal& deltaLon, const qreal& deltaLat )
+void MarbleMap::rotateBy(qreal deltaLon, qreal deltaLat)
{
centerOn( d->m_viewport.centerLongitude() * RAD2DEG + deltaLon,
d->m_viewport.centerLatitude() * RAD2DEG + deltaLat );
diff --git a/src/lib/marble/MarbleMap.h b/src/lib/marble/MarbleMap.h
index 90724b2..e76c04f 100644
--- a/src/lib/marble/MarbleMap.h
+++ b/src/lib/marble/MarbleMap.h
@@ -454,7 +454,7 @@ class MARBLE_EXPORT MarbleMap : public QObject
* of (lon, lat), otherwise the resulting angle will be the sum of
* the previous position and the two offsets.
*/
- void rotateBy( const qreal &deltaLon, const qreal &deltaLat );
+ void rotateBy(qreal deltaLon, qreal deltaLat);
/**
* @brief Center the view on a geographical point
diff --git a/src/lib/marble/geodata/data/GeoDataIconStyle.cpp b/src/lib/marble/geodata/data/GeoDataIconStyle.cpp
index 5d05a73..a5e0879 100644
--- a/src/lib/marble/geodata/data/GeoDataIconStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataIconStyle.cpp
@@ -235,7 +235,7 @@ QSize GeoDataIconStyle::size() const
return d->m_size;
}
-void GeoDataIconStyle::setScale( const float &scale )
+void GeoDataIconStyle::setScale(float scale)
{
d->m_scale = scale;
}
diff --git a/src/lib/marble/geodata/data/GeoDataIconStyle.h b/src/lib/marble/geodata/data/GeoDataIconStyle.h
index c3926a4..4a6bd31 100644
--- a/src/lib/marble/geodata/data/GeoDataIconStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataIconStyle.h
@@ -83,7 +83,7 @@ class GEODATA_EXPORT GeoDataIconStyle : public GeoDataColorStyle
*/
QSize size() const;
- void setScale( const float &scale );
+ void setScale(float scale);
float scale() const;
int heading() const;
diff --git a/src/lib/marble/geodata/data/GeoDataImagePyramid.cpp b/src/lib/marble/geodata/data/GeoDataImagePyramid.cpp
index 2f985b5..1081d73 100644
--- a/src/lib/marble/geodata/data/GeoDataImagePyramid.cpp
+++ b/src/lib/marble/geodata/data/GeoDataImagePyramid.cpp
@@ -82,7 +82,7 @@ int GeoDataImagePyramid::tileSize() const
return d->m_tileSize;
}
-void GeoDataImagePyramid::setTileSize( const int &tileSize )
+void GeoDataImagePyramid::setTileSize(int tileSize)
{
d->m_tileSize = tileSize;
}
@@ -92,7 +92,7 @@ int GeoDataImagePyramid::maxWidth() const
return d->m_maxWidth;
}
-void GeoDataImagePyramid::setMaxWidth( const int &maxWidth )
+void GeoDataImagePyramid::setMaxWidth(int maxWidth)
{
d->m_maxWidth = maxWidth;
}
@@ -102,7 +102,7 @@ int GeoDataImagePyramid::maxHeight() const
return d->m_maxHeight;
}
-void GeoDataImagePyramid::setMaxHeight( const int &maxHeight )
+void GeoDataImagePyramid::setMaxHeight(int maxHeight)
{
d->m_maxHeight = maxHeight;
}
@@ -112,7 +112,7 @@ GeoDataImagePyramid::GridOrigin GeoDataImagePyramid::gridOrigin() const
return d->m_gridOrigin;
}
-void GeoDataImagePyramid::setGridOrigin( const GridOrigin &gridOrigin )
+void GeoDataImagePyramid::setGridOrigin(GridOrigin gridOrigin)
{
d->m_gridOrigin = gridOrigin;
}
diff --git a/src/lib/marble/geodata/data/GeoDataImagePyramid.h b/src/lib/marble/geodata/data/GeoDataImagePyramid.h
index 0e488e0..0dbe26c 100644
--- a/src/lib/marble/geodata/data/GeoDataImagePyramid.h
+++ b/src/lib/marble/geodata/data/GeoDataImagePyramid.h
@@ -41,16 +41,16 @@ public:
};
int tileSize() const;
- void setTileSize( const int &tileSize );
+ void setTileSize(int tileSize);
int maxWidth() const;
- void setMaxWidth( const int &maxWidth );
+ void setMaxWidth(int maxWidth);
int maxHeight() const;
- void setMaxHeight( const int &maxHeight );
+ void setMaxHeight(int maxHeight);
GridOrigin gridOrigin() const;
- void setGridOrigin( const GridOrigin &gridOrigin );
+ void setGridOrigin(GridOrigin gridOrigin);
private:
GeoDataImagePyramidPrivate* const d;
diff --git a/src/lib/marble/geodata/data/GeoDataLabelStyle.cpp b/src/lib/marble/geodata/data/GeoDataLabelStyle.cpp
index 8544d34..d67baa9 100644
--- a/src/lib/marble/geodata/data/GeoDataLabelStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataLabelStyle.cpp
@@ -121,7 +121,7 @@ GeoDataLabelStyle::Alignment GeoDataLabelStyle::alignment() const
return d->m_alignment;
}
-void GeoDataLabelStyle::setScale( const float &scale )
+void GeoDataLabelStyle::setScale(float scale)
{
d->m_scale = scale;
}
diff --git a/src/lib/marble/geodata/data/GeoDataLabelStyle.h b/src/lib/marble/geodata/data/GeoDataLabelStyle.h
index 1acadfb..7144789 100644
--- a/src/lib/marble/geodata/data/GeoDataLabelStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataLabelStyle.h
@@ -64,7 +64,7 @@ class GEODATA_EXPORT GeoDataLabelStyle : public GeoDataColorStyle
* @brief Set the scale of the label
* @param scale the new scale
*/
- void setScale( const float &scale );
+ void setScale(float scale);
/**
* @brief Return the current scale of the label
* @return the current scale
diff --git a/src/lib/marble/geodata/data/GeoDataLineStyle.cpp b/src/lib/marble/geodata/data/GeoDataLineStyle.cpp
index 9a502be..c603b25 100644
--- a/src/lib/marble/geodata/data/GeoDataLineStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataLineStyle.cpp
@@ -96,7 +96,7 @@ const char* GeoDataLineStyle::nodeType() const
return d->nodeType();
}
-void GeoDataLineStyle::setWidth( const float &width )
+void GeoDataLineStyle::setWidth(float width)
{
d->m_width = width;
}
@@ -111,7 +111,7 @@ float GeoDataLineStyle::physicalWidth() const
return d->m_physicalWidth;
}
-void GeoDataLineStyle::setPhysicalWidth( const float& realWidth )
+void GeoDataLineStyle::setPhysicalWidth(float realWidth)
{
d->m_physicalWidth = realWidth;
}
diff --git a/src/lib/marble/geodata/data/GeoDataLineStyle.h b/src/lib/marble/geodata/data/GeoDataLineStyle.h
index 307c9d0..9e501d6 100644
--- a/src/lib/marble/geodata/data/GeoDataLineStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataLineStyle.h
@@ -60,7 +60,7 @@ class GEODATA_EXPORT GeoDataLineStyle : public GeoDataColorStyle
* @brief Set the width of the line
* @param width the new width
*/
- void setWidth( const float &width );
+ void setWidth(float width);
/**
* @brief Return the current width of the line
* @return the current width
@@ -71,7 +71,7 @@ class GEODATA_EXPORT GeoDataLineStyle : public GeoDataColorStyle
* @brief Set the physical width of the line (in meters)
* @param width the new width
*/
- void setPhysicalWidth( const float &realWidth );
+ void setPhysicalWidth(float realWidth);
/**
* @brief Return the current physical width of the line
* @return the current width
diff --git a/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.cpp b/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.cpp
index 9546d10..6b33bfd 100644
--- a/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.cpp
+++ b/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.cpp
@@ -151,7 +151,7 @@ qreal GeoDataNetworkLinkControl::minRefreshPeriod() const
return d->m_minRefreshPeriod;
}
-void GeoDataNetworkLinkControl::setMinRefreshPeriod( const qreal &minRefreshPeriod )
+void GeoDataNetworkLinkControl::setMinRefreshPeriod(qreal minRefreshPeriod )
{
d->m_minRefreshPeriod = minRefreshPeriod;
}
@@ -161,7 +161,7 @@ qreal GeoDataNetworkLinkControl::maxSessionLength() const
return d->m_maxSessionLength;
}
-void GeoDataNetworkLinkControl::setMaxSessionLength( const qreal &maxSessionLength )
+void GeoDataNetworkLinkControl::setMaxSessionLength(qreal maxSessionLength)
{
d->m_maxSessionLength = maxSessionLength;
}
@@ -221,7 +221,7 @@ int GeoDataNetworkLinkControl::maxLines() const
return d->m_maxLines;
}
-void GeoDataNetworkLinkControl::setMaxLines( const int &maxLines )
+void GeoDataNetworkLinkControl::setMaxLines(int maxLines)
{
d->m_maxLines = maxLines;
}
diff --git a/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.h b/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.h
index 5986837..17e23e0 100644
--- a/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.h
+++ b/src/lib/marble/geodata/data/GeoDataNetworkLinkControl.h
@@ -41,10 +41,10 @@ public:
virtual const char* nodeType() const;
qreal minRefreshPeriod() const;
- void setMinRefreshPeriod( const qreal &minRefreshPeriod );
+ void setMinRefreshPeriod(qreal minRefreshPeriod);
qreal maxSessionLength() const;
- void setMaxSessionLength( const qreal &maxSessionLength );
+ void setMaxSessionLength(qreal maxSessionLength);
QString cookie() const;
void setCookie( const QString &cookie );
@@ -61,7 +61,7 @@ public:
QString linkSnippet() const;
void setLinkSnippet( const QString &linkSnippet );
int maxLines() const;
- void setMaxLines( const int &maxLines );
+ void setMaxLines(int maxLines);
QDateTime expires() const;
void setExpires( const QDateTime &expires );
diff --git a/src/lib/marble/geodata/data/GeoDataPolyStyle.cpp b/src/lib/marble/geodata/data/GeoDataPolyStyle.cpp
index 5799ca5..1eb6c07 100644
--- a/src/lib/marble/geodata/data/GeoDataPolyStyle.cpp
+++ b/src/lib/marble/geodata/data/GeoDataPolyStyle.cpp
@@ -92,7 +92,7 @@ const char* GeoDataPolyStyle::nodeType() const
return d->nodeType();
}
-void GeoDataPolyStyle::setFill( const bool &fill )
+void GeoDataPolyStyle::setFill(bool fill)
{
d->m_fill = fill;
}
@@ -102,7 +102,7 @@ bool GeoDataPolyStyle::fill() const
return d->m_fill;
}
-void GeoDataPolyStyle::setOutline( const bool &outline )
+void GeoDataPolyStyle::setOutline(bool outline)
{
d->m_outline = outline;
}
diff --git a/src/lib/marble/geodata/data/GeoDataPolyStyle.h b/src/lib/marble/geodata/data/GeoDataPolyStyle.h
index 096a96e..8b8613a 100644
--- a/src/lib/marble/geodata/data/GeoDataPolyStyle.h
+++ b/src/lib/marble/geodata/data/GeoDataPolyStyle.h
@@ -57,7 +57,7 @@ class GEODATA_EXPORT GeoDataPolyStyle : public GeoDataColorStyle
* @brief Set whether to fill the polygon
* @param fill
*/
- void setFill( const bool &fill );
+ void setFill(bool fill);
/**
* @brief Return true if polygons get filled
* @return whether to fill
@@ -68,7 +68,7 @@ class GEODATA_EXPORT GeoDataPolyStyle : public GeoDataColorStyle
* @brief Set whether to draw the outline
* @param outline
*/
- void setOutline( const bool &outline );
+ void setOutline(bool outline);
/**
* @brief Return true if outlines of polygons get drawn
* @return whether outline is drawn
diff --git a/src/lib/marble/geodata/data/GeoDataScreenOverlay.cpp b/src/lib/marble/geodata/data/GeoDataScreenOverlay.cpp
index a298a3a..fd32d05 100644
--- a/src/lib/marble/geodata/data/GeoDataScreenOverlay.cpp
+++ b/src/lib/marble/geodata/data/GeoDataScreenOverlay.cpp
@@ -81,8 +81,7 @@ void GeoDataScreenOverlay::setOverlayXY(const GeoDataVec2 &vec2)
d->m_overlayXY = vec2;
}
-void GeoDataScreenOverlay::setOverlayXY(const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit,
- const GeoDataVec2::Unit &yunit)
+void GeoDataScreenOverlay::setOverlayXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit)
{
d->m_screenXY.setX(x);
d->m_screenXY.setY(y);
@@ -100,8 +99,7 @@ void GeoDataScreenOverlay::setScreenXY(const GeoDataVec2 &vec2)
d->m_screenXY = vec2;
}
-void GeoDataScreenOverlay::setScreenXY(const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit,
- const GeoDataVec2::Unit &yunit)
+void GeoDataScreenOverlay::setScreenXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit)
{
d->m_screenXY.setX(x);
d->m_screenXY.setY(y);
@@ -119,8 +117,7 @@ void GeoDataScreenOverlay::setRotationXY(const GeoDataVec2 &vec2)
d->m_rotationXY = vec2;
}
-void GeoDataScreenOverlay::setRotationXY(const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit,
- const GeoDataVec2::Unit &yunit)
+void GeoDataScreenOverlay::setRotationXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit)
{
d->m_rotationXY.setX(x);
d->m_rotationXY.setY(y);
@@ -138,8 +135,7 @@ void GeoDataScreenOverlay::setSize(const GeoDataVec2 &vec2)
d->m_size = vec2;
}
-void GeoDataScreenOverlay::setSize(const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit,
- const GeoDataVec2::Unit &yunit)
+void GeoDataScreenOverlay::setSize(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit)
{
d->m_size.setX(x);
d->m_size.setY(y);
diff --git a/src/lib/marble/geodata/data/GeoDataScreenOverlay.h b/src/lib/marble/geodata/data/GeoDataScreenOverlay.h
index 65ac1db..8fc6b0e 100644
--- a/src/lib/marble/geodata/data/GeoDataScreenOverlay.h
+++ b/src/lib/marble/geodata/data/GeoDataScreenOverlay.h
@@ -36,19 +36,19 @@ public:
GeoDataVec2 overlayXY() const;
void setOverlayXY( const GeoDataVec2 &vec2 );
- void setOverlayXY( const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit, const GeoDataVec2::Unit &yunit );
+ void setOverlayXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
GeoDataVec2 screenXY() const;
void setScreenXY( const GeoDataVec2 &vec2 );
- void setScreenXY( const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit, const GeoDataVec2::Unit &yunit );
+ void setScreenXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
GeoDataVec2 rotationXY() const;
void setRotationXY( const GeoDataVec2 &vec2 );
- void setRotationXY( const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit, const GeoDataVec2::Unit &yunit );
+ void setRotationXY(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
GeoDataVec2 size() const;
void setSize( const GeoDataVec2 &vec2 );
- void setSize( const qreal &x, const qreal &y, const GeoDataVec2::Unit &xunit, const GeoDataVec2::Unit &yunit );
+ void setSize(qreal x, qreal y, GeoDataVec2::Unit xunit, GeoDataVec2::Unit yunit);
qreal rotation() const;
void setRotation( qreal rotation );
diff --git a/src/lib/marble/geodata/data/GeoDataVec2.cpp b/src/lib/marble/geodata/data/GeoDataVec2.cpp
index 6735913..0a89051 100644
--- a/src/lib/marble/geodata/data/GeoDataVec2.cpp
+++ b/src/lib/marble/geodata/data/GeoDataVec2.cpp
@@ -35,7 +35,7 @@ GeoDataVec2::GeoDataVec2() :
{
}
-GeoDataVec2::GeoDataVec2(const qreal &x, const qreal &y, const QString &xunits, const QString &yunits) :
+GeoDataVec2::GeoDataVec2(qreal x, qreal y, const QString &xunits, const QString &yunits) :
d( new GeoDataVec2Private )
{
setX( x );
diff --git a/src/lib/marble/geodata/data/GeoDataVec2.h b/src/lib/marble/geodata/data/GeoDataVec2.h
index f686467..dce60e9 100644
--- a/src/lib/marble/geodata/data/GeoDataVec2.h
+++ b/src/lib/marble/geodata/data/GeoDataVec2.h
@@ -26,7 +26,7 @@ public:
GeoDataVec2();
- GeoDataVec2( const qreal &x, const qreal &y, const QString &xunit, const QString &yunit );
+ GeoDataVec2(qreal x, qreal y, const QString &xunit, const QString &yunit);
GeoDataVec2( const GeoDataVec2 &other );
diff --git a/src/lib/marble/geodata/data/GeoDataViewVolume.cpp b/src/lib/marble/geodata/data/GeoDataViewVolume.cpp
index 582d9d1..c538dfe 100644
--- a/src/lib/marble/geodata/data/GeoDataViewVolume.cpp
+++ b/src/lib/marble/geodata/data/GeoDataViewVolume.cpp
@@ -85,7 +85,7 @@ qreal GeoDataViewVolume::leftFov() const
return d->m_leftFov;
}
-void GeoDataViewVolume::setLeftFov( const qreal &leftFov )
+void GeoDataViewVolume::setLeftFov(qreal leftFov)
{
d->m_leftFov = leftFov;
}
@@ -95,7 +95,7 @@ qreal GeoDataViewVolume::rightFov() const
return d->m_rightFov;
}
-void GeoDataViewVolume::setRightFov( const qreal &rightFov )
+void GeoDataViewVolume::setRightFov(qreal rightFov)
{
d->m_rightFov = rightFov;
}
@@ -105,7 +105,7 @@ qreal GeoDataViewVolume::bottomFov() const
return d->m_bottomFov;
}
-void GeoDataViewVolume::setBottomFov( const qreal &bottomFov )
+void GeoDataViewVolume::setBottomFov(qreal bottomFov)
{
d->m_bottomFov = bottomFov;
}
@@ -115,7 +115,7 @@ qreal GeoDataViewVolume::topFov() const
return d->m_topFov;
}
-void GeoDataViewVolume::setTopFov( const qreal &topFov )
+void GeoDataViewVolume::setTopFov(qreal topFov)
{
d->m_topFov = topFov;
}
@@ -125,7 +125,7 @@ qreal GeoDataViewVolume::near() const
return d->m_near;
}
-void GeoDataViewVolume::setNear( const qreal &near )
+void GeoDataViewVolume::setNear(qreal near)
{
d->m_near = near;
}
diff --git a/src/lib/marble/geodata/data/GeoDataViewVolume.h b/src/lib/marble/geodata/data/GeoDataViewVolume.h
index 6c9513e..0e25c90 100644
--- a/src/lib/marble/geodata/data/GeoDataViewVolume.h
+++ b/src/lib/marble/geodata/data/GeoDataViewVolume.h
@@ -36,19 +36,19 @@ public:
virtual const char* nodeType() const;
qreal leftFov() const;
- void setLeftFov( const qreal &leftFov );
+ void setLeftFov(qreal leftFov);
qreal rightFov() const;
- void setRightFov( const qreal &rightFov );
+ void setRightFov(qreal rightFov);
qreal bottomFov() const;
- void setBottomFov( const qreal &bottomFov );
+ void setBottomFov(qreal bottomFov);
qreal topFov() const;
- void setTopFov( const qreal &topFov );
+ void setTopFov(qreal topFov);
qreal near() const;
- void setNear( const qreal &near );
+ void setNear(qreal near);
private:
GeoDataViewVolumePrivate* const d;
diff --git a/src/lib/marble/geodata/scene/GeoSceneGeodata.cpp b/src/lib/marble/geodata/scene/GeoSceneGeodata.cpp
index 7ea4cdc..0cf31b0 100644
--- a/src/lib/marble/geodata/scene/GeoSceneGeodata.cpp
+++ b/src/lib/marble/geodata/scene/GeoSceneGeodata.cpp
@@ -76,7 +76,7 @@ QPen GeoSceneGeodata::pen() const
return m_pen;
}
-void GeoSceneGeodata::setAlpha( const qreal &alpha )
+void GeoSceneGeodata::setAlpha(qreal alpha)
{
m_alpha = alpha;
}
diff --git a/src/lib/marble/geodata/scene/GeoSceneGeodata.h b/src/lib/marble/geodata/scene/GeoSceneGeodata.h
index b4bbd42..ea55206 100644
--- a/src/lib/marble/geodata/scene/GeoSceneGeodata.h
+++ b/src/lib/marble/geodata/scene/GeoSceneGeodata.h
@@ -40,7 +40,7 @@ class GEODATA_EXPORT GeoSceneGeodata : public GeoSceneAbstractDataset
void setColorize( const QString& colorize );
qreal alpha() const;
- void setAlpha( const qreal &alpha );
+ void setAlpha(qreal alpha);
QPen pen() const;
void setPen( const QPen& pen );
diff --git a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.cpp b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.cpp
index 6e066e4..23654bb 100644
--- a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.cpp
+++ b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.cpp
@@ -30,14 +30,14 @@ ElevationProfilePlotAxis::ElevationProfilePlotAxis()
// nothing to do...
}
-void ElevationProfilePlotAxis::setRange( const qreal& minValue, const qreal& maxValue )
+void ElevationProfilePlotAxis::setRange(qreal minValue, qreal maxValue)
{
m_minValue = minValue;
m_maxValue = maxValue;
update();
}
-void ElevationProfilePlotAxis::setLength( const int& length )
+void ElevationProfilePlotAxis::setLength(int length)
{
m_pixelLength = length;
update();
diff --git a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
index 2403df9..07fd8b2 100644
--- a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
+++ b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
@@ -57,8 +57,8 @@ class ElevationProfilePlotAxis : public QObject
public:
explicit ElevationProfilePlotAxis( );
- void setRange( const qreal &minValue, const qreal &maxValue );
- void setLength( const int &length );
+ void setRange(qreal minValue, qreal maxValue);
+ void setLength(int length);
void setTickCount( const int min, const int max );
void update();
qreal minValue() const;