diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-06-24 13:27:13 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-06-24 13:27:13 (GMT) |
commit | 0531b97863f93c5a141bd9ef0b58bcf6282024e7 (patch) | |
tree | 4f7be4e8f31b376a153df521c11b8473a29be286 /src/corelib/io/qiodevice.cpp | |
parent | d806b996beab76cbc43ffa11bc38721fa19c9c81 (diff) | |
download | Qt-0531b97863f93c5a141bd9ef0b58bcf6282024e7.zip Qt-0531b97863f93c5a141bd9ef0b58bcf6282024e7.tar.gz Qt-0531b97863f93c5a141bd9ef0b58bcf6282024e7.tar.bz2 |
Manipulate buffer position via 'pPos' in peek()
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'src/corelib/io/qiodevice.cpp')
-rw-r--r-- | src/corelib/io/qiodevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp index ea60792..26e587d 100644 --- a/src/corelib/io/qiodevice.cpp +++ b/src/corelib/io/qiodevice.cpp @@ -1452,7 +1452,7 @@ qint64 QIODevicePrivate::peek(char *data, qint64 maxSize) return readBytes; buffer.ungetBlock(data, readBytes); - pos -= readBytes; + *pPos -= readBytes; return readBytes; } @@ -1467,7 +1467,7 @@ QByteArray QIODevicePrivate::peek(qint64 maxSize) return result; buffer.ungetBlock(result.constData(), result.size()); - pos -= result.size(); + *pPos -= result.size(); return result; } |