[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Sun Oct 14 12:03:16 UTC 2012
SVN commit 1320478 by kuemmel:
FileBuffer: resizing < Prealloc is cheap
M +0 -1 asciidatareader.cpp
M +0 -1 asciifilebuffer.h
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciidatareader.cpp #1320477:1320478
@@ -123,7 +123,6 @@
do {
// Read the tmpbuffer, starting at row_index[_numFrames]
buf.clear();
- buf.resize(buf.capacity());
//bufstart += bufread;
buf._bufferedS = _rowIndex[numFrames]; // always read from the start of a line
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciifilebuffer.h #1320477:1320478
@@ -40,7 +40,6 @@
int _bufferedN;
inline int size() const { return _array->size(); }
- inline int capacity() const { return _array->capacity(); }
inline char* data() { return _array->data(); }
inline const char* const constPointer() const { return _array->data(); }
More information about the Kst
mailing list