summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytedata_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qbytedata_p.h')
-rw-r--r--src/corelib/text/qbytedata_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/text/qbytedata_p.h b/src/corelib/text/qbytedata_p.h
index 3c36085021..6195e56107 100644
--- a/src/corelib/text/qbytedata_p.h
+++ b/src/corelib/text/qbytedata_p.h
@@ -139,6 +139,7 @@ public:
// preferably use this function to read data.
inline QByteArray read()
{
+ Q_ASSERT(!isEmpty());
squeezeFirst();
bufferCompleteSize -= buffers.first().size();
return buffers.takeFirst();