QNonContigByteDeviceThreadForwardImpl: NSDMI

Makes it clearer what members depend on arguments to the ctor. And
what the initial value of all the members are.

Change-Id: Ie1cd2361955053eaf4c4e6887d23ac245738288d
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mate Barany <mate.barany@qt.io>
bb10
Mårten Nordheim 2023-09-11 17:56:44 +02:00
parent 5c7c44cf83
commit 479c2add32
1 changed files with 7 additions and 11 deletions

View File

@ -164,22 +164,18 @@ class QNonContiguousByteDeviceThreadForwardImpl : public QNonContiguousByteDevic
{
Q_OBJECT
protected:
bool wantDataPending;
qint64 m_amount;
char *m_data;
bool wantDataPending = false;
qint64 m_amount = 0;
char *m_data = nullptr;
QByteArray m_dataArray;
bool m_atEnd;
qint64 m_size;
qint64 m_pos; // to match calls of haveDataSlot with the expected position
bool m_atEnd = false;
qint64 m_size = 0;
qint64 m_pos = 0; // to match calls of haveDataSlot with the expected position
public:
QNonContiguousByteDeviceThreadForwardImpl(bool aE, qint64 s)
: QNonContiguousByteDevice(),
wantDataPending(false),
m_amount(0),
m_data(nullptr),
m_atEnd(aE),
m_size(s),
m_pos(0)
m_size(s)
{
}