summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-03-27 15:03:06 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-03-28 16:19:09 +0000
commit873e8ac06c606e71aafb9be9baa21143e6757df5 (patch)
tree302c02169d0e7a5ca2dc4376d50639dced5ba839
parent6da114ef09c50763d2864c79ddb2155515f06753 (diff)
Pass QVector<qreal> by const-ref for consistency
Change-Id: I6cd8b3f1533848f47142e5ce527e9effadddb45c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r--src/render/frontend/qlevelofdetail.cpp2
-rw-r--r--src/render/frontend/qlevelofdetail.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/render/frontend/qlevelofdetail.cpp b/src/render/frontend/qlevelofdetail.cpp
index 6ecacbc09..92bbc2471 100644
--- a/src/render/frontend/qlevelofdetail.cpp
+++ b/src/render/frontend/qlevelofdetail.cpp
@@ -435,7 +435,7 @@ QLevelOfDetailBoundingSphere QLevelOfDetail::createBoundingSphere(const QVector3
* Sets the range values in \a thresholds.
* \sa Qt3DRender::QLevelOfDetail::thresholdType
*/
-void QLevelOfDetail::setThresholds(QVector<qreal> thresholds)
+void QLevelOfDetail::setThresholds(const QVector<qreal> &thresholds)
{
Q_D(QLevelOfDetail);
if (d->m_thresholds != thresholds) {
diff --git a/src/render/frontend/qlevelofdetail.h b/src/render/frontend/qlevelofdetail.h
index c0d56c9cd..e88967851 100644
--- a/src/render/frontend/qlevelofdetail.h
+++ b/src/render/frontend/qlevelofdetail.h
@@ -84,14 +84,14 @@ public Q_SLOTS:
void setCamera(QCamera *camera);
void setCurrentIndex(int currentIndex);
void setThresholdType(ThresholdType thresholdType);
- void setThresholds(QVector<qreal> thresholds);
+ void setThresholds(const QVector<qreal> &thresholds);
void setVolumeOverride(const QLevelOfDetailBoundingSphere &volumeOverride);
Q_SIGNALS:
void cameraChanged(QCamera *camera);
void currentIndexChanged(int currentIndex);
void thresholdTypeChanged(ThresholdType thresholdType);
- void thresholdsChanged(QVector<qreal> thresholds);
+ void thresholdsChanged(const QVector<qreal> &thresholds);
void volumeOverrideChanged(const QLevelOfDetailBoundingSphere &volumeOverride);
protected: