properly initialize QImageReaderPrivate members

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-30 18:06:01 +02:00
parent 81e11932a5
commit 00398f2abe

View file

@ -452,13 +452,14 @@ public:
\internal
*/
QImageReaderPrivate::QImageReaderPrivate()
: autoDetectImageFormat(true), ignoresFormatAndExtension(false)
: autoDetectImageFormat(true),
ignoresFormatAndExtension(false),
device(Q_NULLPTR),
deleteDevice(false),
handler(Q_NULLPTR),
quality(-1),
imageReaderError(QImageReader::UnknownError)
{
device = 0;
deleteDevice = false;
handler = 0;
quality = -1;
imageReaderError = QImageReader::UnknownError;
}
/*!