[Kst] branches/work/kst/portto4/kst/src/datasources/ascii

Peter Kümmel syntheticpp at gmx.net
Sun Oct 14 14:37:35 UTC 2012


On 14.10.2012 16:07, Peter Kümmel wrote:
> SVN commit 1320508 by kuemmel:
>

use bytesRead == 0 as initial value

It should also be checked against 0.


>
>   M  +1 -1      asciifilebuffer.cpp
>   M  +1 -1      asciifilebuffer.h
>
>
> --- branches/work/kst/portto4/kst/src/datasources/ascii/asciifilebuffer.cpp #1320507:1320508
> @@ -37,7 +37,7 @@
>       _array = new Array;
>     }
>     _begin = -1;
> -  _bytesRead = -1;
> +  _bytesRead = 0;
>   }
>
>   //-------------------------------------------------------------------------------------------
> --- branches/work/kst/portto4/kst/src/datasources/ascii/asciifilebuffer.h #1320507:1320508
> @@ -33,7 +33,7 @@
>
>     typedef QVarLengthArray<char, Prealloc> Array;
>
> -  inline AsciiFileBuffer() : _array(new Array), _begin(-1), _bytesRead(-1) {}
> +  inline AsciiFileBuffer() : _array(new Array), _begin(-1), _bytesRead(0) {}
>     inline ~AsciiFileBuffer() { delete _array; }
>
>     inline int begin() const { return _begin; }
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>


More information about the Kst mailing list