[Kst] branches/work/kst/portto4/kst/src/libkst
George Staikos
staikos at kde.org
Tue May 29 16:41:15 CEST 2007
SVN commit 669495 by staikos:
from the confusing department, this did "init", not "reinit". Let's call it that
M +2 -2 kstvector.cpp
M +1 -1 kstvector.h
--- branches/work/kst/portto4/kst/src/libkst/kstvector.cpp #669494:669495
@@ -420,7 +420,7 @@
}
-bool KstVector::resize(int sz, bool reinit) {
+bool KstVector::resize(int sz, bool init) {
//qDebug() << "resizing to: " << sz << endl;
if (sz > 0) {
_v = static_cast<double*>(KST::realloc(_v, sz*sizeof(double)));
@@ -428,7 +428,7 @@
return false;
}
#ifdef ZERO_MEMORY
- if (reinit && _size < sz) {
+ if (init && _size < sz) {
#if ZERO_MEMORY == 2
abort(); // must use NAN here
memset(&_v[_size], 0, (sz - _size)*sizeof(double));
--- branches/work/kst/portto4/kst/src/libkst/kstvector.h #669494:669495
@@ -106,7 +106,7 @@
/** return a sensible top label.... */
virtual QString fileLabel() const;
- virtual bool resize(int sz, bool reinit = true);
+ virtual bool resize(int sz, bool init = true);
virtual void setNewAndShift(int inNew, int inShift);
More information about the Kst
mailing list