[Kst] branches/work/kst/portto4/kst/src/libkst
George Staikos
staikos at kde.org
Mon May 28 19:55:45 CEST 2007
SVN commit 669172 by staikos:
missing const
M +1 -1 kstvector.cpp
M +1 -1 kstvector.h
--- branches/work/kst/portto4/kst/src/libkst/kstvector.cpp #669171:669172
@@ -296,7 +296,7 @@
#undef RETURN_FIRST_NON_HOLE
#undef GENERATE_INTERPOLATION
-double KstVector::value(int i) {
+double KstVector::value(int i) const {
if (i < 0 || i >= _size) { // can't look before beginning or past end
return 0.0;
}
--- branches/work/kst/portto4/kst/src/libkst/kstvector.h #669171:669172
@@ -72,7 +72,7 @@
double interpolateNoHoles(int i, int ns_i) const;
/** Return V[i] uninterpolated */
- double value(int i);
+ double value(int i) const;
/** Return Minimum value in Vector */
inline double min() const { return _min; }
More information about the Kst
mailing list