summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytedata_p.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-05-08 11:31:20 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-06-12 14:05:24 +0200
commita114b133f567afe66b65d2edd3dd3998dfbd1218 (patch)
tree737c5bbd84847c712f5526e0112a8af68bdbac6b /src/corelib/text/qbytedata_p.h
parent3a955edb1a2be5be06d4f9d5ea7348ae95c5c0a5 (diff)
QByteDataBuffer: Remove the ctor and dtor
Remove the ctor as it was not doing anything special and the implicitly generated one will do what we need anyway. And calling clear before destructing wasn't useful, so just remove the dtor in general. Change-Id: I9ed722d4db3ea220d32082d4cb38c10a9af34d5e Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/text/qbytedata_p.h')
-rw-r--r--src/corelib/text/qbytedata_p.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/corelib/text/qbytedata_p.h b/src/corelib/text/qbytedata_p.h
index b319d75811..108aec72ac 100644
--- a/src/corelib/text/qbytedata_p.h
+++ b/src/corelib/text/qbytedata_p.h
@@ -62,18 +62,9 @@ class QByteDataBuffer
{
private:
QList<QByteArray> buffers;
- qint64 bufferCompleteSize;
- qint64 firstPos;
+ qint64 bufferCompleteSize = 0;
+ qint64 firstPos = 0;
public:
- QByteDataBuffer() : bufferCompleteSize(0), firstPos(0)
- {
- }
-
- ~QByteDataBuffer()
- {
- clear();
- }
-
static inline void popFront(QByteArray &ba, qint64 n)
{
ba = QByteArray(ba.constData() + n, ba.size() - n);