From b1999a2a16b83aa031df2ce1cb266b7fea8847da Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Mon, 22 Dec 2008 11:22:15 +0000 Subject: Fixed indentation and removed whitespaces at the end of line svn-id: r35481 --- common/stream.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/stream.cpp') diff --git a/common/stream.cpp b/common/stream.cpp index e17a745ef1..1cdcd50723 100644 --- a/common/stream.cpp +++ b/common/stream.cpp @@ -85,7 +85,7 @@ bool MemoryReadStream::seek(int32 offs, int whence) { assert(_pos <= _size); // Reset end-of-stream flag on a successful seek - _eos = false; + _eos = false; return true; // FIXME: STREAM REWRITE } @@ -101,7 +101,7 @@ char *SeekableReadStream::readLine_NEW(char *buf, size_t bufSize) { char c = 0; // If end-of-file occurs before any characters are read, return NULL - // and the buffer contents remain unchanged. + // and the buffer contents remain unchanged. if (eos() || err()) { return 0; } @@ -147,7 +147,7 @@ char *SeekableReadStream::readLine_NEW(char *buf, size_t bufSize) { // Treat CR & CR/LF as plain LF c = LF; } - + *p++ = c; len++; } @@ -166,7 +166,7 @@ String SeekableReadStream::readLine() { break; line += buf; } - + if (line.lastChar() == '\n') line.deleteLastChar(); @@ -256,7 +256,7 @@ uint32 BufferedReadStream::read(void *dataPtr, uint32 dataSize) { dataPtr = (byte *)dataPtr + bufBytesLeft; dataSize -= bufBytesLeft; } - + // At this point the buffer is empty. Now if the read request // exceeds the buffer size, just satisfy it directly. if (dataSize > _bufSize) @@ -299,7 +299,7 @@ bool BufferedSeekableReadStream::seek(int32 offset, int whence) { _pos = _bufSize; _parentStream->seek(offset, whence); } - + return true; // FIXME: STREAM REWRITE } -- cgit v1.2.3