From d52bb250c31508ce31f9e533e4f41f363cfb97d8 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 10 Jul 2021 08:13:55 +0200 Subject: [PATCH] QNonContiguousByteDevice: ++explicit Change-Id: I5d40a12704789eff10db9b1fb34f4e375651f1f0 Reviewed-by: Giuseppe D'Angelo --- src/corelib/io/qnoncontiguousbytedevice_p.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/corelib/io/qnoncontiguousbytedevice_p.h b/src/corelib/io/qnoncontiguousbytedevice_p.h index aa762766afc..c570480d85b 100644 --- a/src/corelib/io/qnoncontiguousbytedevice_p.h +++ b/src/corelib/io/qnoncontiguousbytedevice_p.h @@ -102,7 +102,7 @@ public: class QNonContiguousByteDeviceByteArrayImpl : public QNonContiguousByteDevice { public: - QNonContiguousByteDeviceByteArrayImpl(QByteArray *ba); + explicit QNonContiguousByteDeviceByteArrayImpl(QByteArray *ba); ~QNonContiguousByteDeviceByteArrayImpl(); const char *readPointer(qint64 maximumLength, qint64 &len) override; bool advanceReadPointer(qint64 amount) override; @@ -119,7 +119,7 @@ protected: class QNonContiguousByteDeviceRingBufferImpl : public QNonContiguousByteDevice { public: - QNonContiguousByteDeviceRingBufferImpl(QSharedPointer rb); + explicit QNonContiguousByteDeviceRingBufferImpl(QSharedPointer rb); ~QNonContiguousByteDeviceRingBufferImpl(); const char *readPointer(qint64 maximumLength, qint64 &len) override; bool advanceReadPointer(qint64 amount) override; @@ -137,7 +137,7 @@ class QNonContiguousByteDeviceIoDeviceImpl : public QNonContiguousByteDevice { Q_OBJECT public: - QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d); + explicit QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d); ~QNonContiguousByteDeviceIoDeviceImpl(); const char *readPointer(qint64 maximumLength, qint64 &len) override; bool advanceReadPointer(qint64 amount) override; @@ -161,7 +161,7 @@ class QNonContiguousByteDeviceBufferImpl : public QNonContiguousByteDevice { Q_OBJECT public: - QNonContiguousByteDeviceBufferImpl(QBuffer *b); + explicit QNonContiguousByteDeviceBufferImpl(QBuffer *b); ~QNonContiguousByteDeviceBufferImpl(); const char *readPointer(qint64 maximumLength, qint64 &len) override; bool advanceReadPointer(qint64 amount) override; @@ -179,7 +179,7 @@ protected: class QByteDeviceWrappingIoDevice : public QIODevice { public: - QByteDeviceWrappingIoDevice(QNonContiguousByteDevice *bd); + explicit QByteDeviceWrappingIoDevice(QNonContiguousByteDevice *bd); ~QByteDeviceWrappingIoDevice(); bool isSequential() const override; bool atEnd() const override;