From e0ae701192472d7dd1ae80d78308c4f4a9ef4ec6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 16:21:43 +0300 Subject: Add const to more classes. --- src/particleemitterprop.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/particleemitterprop.h') diff --git a/src/particleemitterprop.h b/src/particleemitterprop.h index 2b6b7ba1a..354cb0229 100644 --- a/src/particleemitterprop.h +++ b/src/particleemitterprop.h @@ -45,13 +45,13 @@ template struct ParticleEmitterProp { } - void set(T min, T max) + void set(const T min, const T max) { minVal = min; maxVal = max; } - void set(T val) + void set(const T val) { set(val, val); } @@ -66,7 +66,7 @@ template struct ParticleEmitterProp changePhase = phase; } - T value(int tick) + T value(int tick) const { tick += changePhase; T val = static_cast(minVal + (maxVal - minVal) -- cgit v1.2.3-60-g2f50