Commit cf8cdc2c authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

fix gcc warnings about order of classes member initialization

Raphael, please include this patch to official libpgf repository. Thanks in advance
CCBUGS: 273765
CCMAIL: rschweizer@schweizer-informatik.ch
parent faf57fc0
......@@ -65,10 +65,10 @@
CDecoder::CDecoder(CPGFStream* stream, PGFPreHeader& preHeader, PGFHeader& header, PGFPostHeader& postHeader, UINT32*& levelLength, bool useOMP /*= true*/) THROW_
: m_stream(stream)
, m_startPos(0)
, m_encodedHeaderLength(0)
, m_streamSizeEstimation(0)
, m_macroBlocksAvailable(0)
, m_encodedHeaderLength(0)
, m_currentBlockIndex(0)
, m_macroBlocksAvailable(0)
#ifdef __PGFROISUPPORT__
, m_roi(false)
#endif
......
......@@ -50,9 +50,9 @@ class CDecoder {
class CMacroBlock {
public:
CMacroBlock(CDecoder *decoder)
: m_decoder(decoder)
, m_header(0)
, m_valuePos(0)
: m_header(0)
, m_valuePos(0)
, m_decoder(decoder)
{
ASSERT(m_decoder);
}
......
......@@ -68,9 +68,9 @@ CEncoder::CEncoder(CPGFStream* stream, PGFPreHeader preHeader, PGFHeader header,
: m_stream(stream)
, m_startPosition(0)
, m_currLevelIndex(0)
, m_nLevels(header.nLevels)
, m_favorSpeed(false)
, m_forceWriting(false)
, m_nLevels(header.nLevels)
#ifdef __PGFROISUPPORT__
, m_roi(false)
#endif
......
......@@ -50,8 +50,8 @@ class CEncoder {
class CMacroBlock {
public:
CMacroBlock(CEncoder *encoder)
: m_encoder(encoder)
, m_header(0)
: m_header(0)
, m_encoder(encoder)
{
ASSERT(m_encoder);
Init(-1);
......
......@@ -62,12 +62,12 @@ CPGFImage::CPGFImage()
, m_favorSpeedOverSize(false)
, m_useOMPinEncoder(true)
, m_useOMPinDecoder(true)
, m_cb(0)
, m_cbArg(0)
#ifdef __PGFROISUPPORT__
, m_levelwise(true)
, m_streamReinitialized(false)
#endif
, m_cb(0)
, m_cbArg(0)
{
// init preHeader
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment