diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-07-10 08:13:55 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-07-10 16:07:37 +0200 |
commit | d52bb250c31508ce31f9e533e4f41f363cfb97d8 (patch) | |
tree | 046d66b3b46ed21d54ff9618c34aeef10a7be82e /src/corelib/io | |
parent | a7894855f2f59028bea9cd1aef07ec1e2c713c90 (diff) |
QNonContiguousByteDevice: ++explicit
Change-Id: I5d40a12704789eff10db9b1fb34f4e375651f1f0
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qnoncontiguousbytedevice_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/io/qnoncontiguousbytedevice_p.h b/src/corelib/io/qnoncontiguousbytedevice_p.h index aa762766af..c570480d85 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<QRingBuffer> rb); + explicit QNonContiguousByteDeviceRingBufferImpl(QSharedPointer<QRingBuffer> 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; |