diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-15 14:26:41 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-16 08:31:04 (GMT) |
commit | dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53 (patch) | |
tree | d2a9d7c6762b883c16b8fb42389a4620cbd8d817 /src/corelib/tools | |
parent | 6f814d58036867a28333770bd55f5fe49bb9ac82 (diff) | |
download | Qt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.zip Qt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.tar.gz Qt-dd6c5cad88a56fb3a342fe9d4fc3b113ffe3fd53.tar.bz2 |
QNetworkReply: Fix canReadLine()
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qbytedata_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytedata_p.h b/src/corelib/tools/qbytedata_p.h index 9aad6a9..c48bb33 100644 --- a/src/corelib/tools/qbytedata_p.h +++ b/src/corelib/tools/qbytedata_p.h @@ -206,6 +206,13 @@ public: { return buffers[i]; } + + inline bool canReadLine() const { + for (int i = 0; i < buffers.length(); i++) + if (buffers.at(i).contains('\n')) + return true; + return false; + } }; QT_END_NAMESPACE |