QNonContiguousByteDevice: ++explicit

Change-Id: I5d40a12704789eff10db9b1fb34f4e375651f1f0
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Marc Mutz 2021-07-10 08:13:55 +02:00
parent a7894855f2
commit d52bb250c3

View File

@ -102,7 +102,7 @@ public:
class QNonContiguousByteDeviceByteArrayImpl : public QNonContiguousByteDevice class QNonContiguousByteDeviceByteArrayImpl : public QNonContiguousByteDevice
{ {
public: public:
QNonContiguousByteDeviceByteArrayImpl(QByteArray *ba); explicit QNonContiguousByteDeviceByteArrayImpl(QByteArray *ba);
~QNonContiguousByteDeviceByteArrayImpl(); ~QNonContiguousByteDeviceByteArrayImpl();
const char *readPointer(qint64 maximumLength, qint64 &len) override; const char *readPointer(qint64 maximumLength, qint64 &len) override;
bool advanceReadPointer(qint64 amount) override; bool advanceReadPointer(qint64 amount) override;
@ -119,7 +119,7 @@ protected:
class QNonContiguousByteDeviceRingBufferImpl : public QNonContiguousByteDevice class QNonContiguousByteDeviceRingBufferImpl : public QNonContiguousByteDevice
{ {
public: public:
QNonContiguousByteDeviceRingBufferImpl(QSharedPointer<QRingBuffer> rb); explicit QNonContiguousByteDeviceRingBufferImpl(QSharedPointer<QRingBuffer> rb);
~QNonContiguousByteDeviceRingBufferImpl(); ~QNonContiguousByteDeviceRingBufferImpl();
const char *readPointer(qint64 maximumLength, qint64 &len) override; const char *readPointer(qint64 maximumLength, qint64 &len) override;
bool advanceReadPointer(qint64 amount) override; bool advanceReadPointer(qint64 amount) override;
@ -137,7 +137,7 @@ class QNonContiguousByteDeviceIoDeviceImpl : public QNonContiguousByteDevice
{ {
Q_OBJECT Q_OBJECT
public: public:
QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d); explicit QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d);
~QNonContiguousByteDeviceIoDeviceImpl(); ~QNonContiguousByteDeviceIoDeviceImpl();
const char *readPointer(qint64 maximumLength, qint64 &len) override; const char *readPointer(qint64 maximumLength, qint64 &len) override;
bool advanceReadPointer(qint64 amount) override; bool advanceReadPointer(qint64 amount) override;
@ -161,7 +161,7 @@ class QNonContiguousByteDeviceBufferImpl : public QNonContiguousByteDevice
{ {
Q_OBJECT Q_OBJECT
public: public:
QNonContiguousByteDeviceBufferImpl(QBuffer *b); explicit QNonContiguousByteDeviceBufferImpl(QBuffer *b);
~QNonContiguousByteDeviceBufferImpl(); ~QNonContiguousByteDeviceBufferImpl();
const char *readPointer(qint64 maximumLength, qint64 &len) override; const char *readPointer(qint64 maximumLength, qint64 &len) override;
bool advanceReadPointer(qint64 amount) override; bool advanceReadPointer(qint64 amount) override;
@ -179,7 +179,7 @@ protected:
class QByteDeviceWrappingIoDevice : public QIODevice class QByteDeviceWrappingIoDevice : public QIODevice
{ {
public: public:
QByteDeviceWrappingIoDevice(QNonContiguousByteDevice *bd); explicit QByteDeviceWrappingIoDevice(QNonContiguousByteDevice *bd);
~QByteDeviceWrappingIoDevice(); ~QByteDeviceWrappingIoDevice();
bool isSequential() const override; bool isSequential() const override;
bool atEnd() const override; bool atEnd() const override;