From 748049f5a3e364d92f2eb2ec188a6cd657ef1087 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sat, 16 Jan 2016 21:46:53 +0100 Subject: Changed color scale internal point to const. --- scatterplot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scatterplot.h') diff --git a/scatterplot.h b/scatterplot.h index f577819..2997425 100644 --- a/scatterplot.h +++ b/scatterplot.h @@ -17,7 +17,7 @@ public: Scatterplot(QQuickItem *parent = 0); arma::mat XY() const; - void setColorScale(ColorScale *colorScale); + void setColorScale(const ColorScale *colorScale); void setXY(const arma::mat &xy, bool updateView); void setColorData(const arma::vec &colorData, bool updateView); void setOpacityData(const arma::vec &opacityData, bool updateView); @@ -78,7 +78,7 @@ private: bool m_shouldUpdateGeometry, m_shouldUpdateMaterials; - ColorScale *m_colorScale; + const ColorScale *m_colorScale; arma::vec m_colorData; arma::vec m_opacityData; -- cgit v1.2.3