Initialize m_cupsCodec

Ensure initialization of m_cupsCodec to nullptr. The codec is checking
the value of m_cupsCodec; but the initialization was conditional before
this patch.

Change-Id: I81751b7743e9956f31f17cead01dc05e268db7eb
Coverity-Id: 188700
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Jesus Fernandez 2018-03-26 13:05:03 +02:00 committed by Jesus Fernandez
parent ed4833465b
commit 0dd326ea7a

View File

@ -154,7 +154,7 @@ private:
bool anyAdvancedOptionConflict() const;
QPrintDevice *m_currentPrintDevice;
QTextCodec *m_cupsCodec;
QTextCodec *m_cupsCodec = nullptr;
QVector<QComboBox*> m_advancedOptionsCombos;
#endif
};