Fix warnings around explicitly calling base class constructors in copy constructors

This commit is contained in:
Brian Cox 2016-04-15 17:16:32 -07:00
parent 9e5dd61e39
commit ea361e91fe
11 changed files with 23 additions and 14 deletions

3
src/core/fileheader.cpp Normal file → Executable file
View File

@ -145,7 +145,8 @@ cFileHeader::cFileHeader()
} }
cFileHeader::cFileHeader(const cFileHeader& rhs) cFileHeader::cFileHeader(const cFileHeader& rhs)
: mID(rhs.mID), : iSerializable(),
mID(rhs.mID),
mVersion(rhs.mVersion), mVersion(rhs.mVersion),
mEncoding(rhs.mEncoding) mEncoding(rhs.mEncoding)
{ {

2
src/core/fileheader.h Normal file → Executable file
View File

@ -86,7 +86,7 @@ inline cFileHeaderID::cFileHeaderID(const TCHAR* id)
inline inline
cFileHeaderID::cFileHeaderID( const cFileHeaderID& rhs ) : cFileHeaderID::cFileHeaderID( const cFileHeaderID& rhs ) :
mIDLen( rhs.mIDLen ) iSerializable(), mIDLen( rhs.mIDLen )
{ {
memcpy( mID, rhs.mID, MAXBYTES ); memcpy( mID, rhs.mID, MAXBYTES );
} }

7
src/fco/fconame.cpp Normal file → Executable file
View File

@ -93,7 +93,7 @@ void cFCOName::ClearNameTable()
// ctor, dtor // ctor, dtor
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cFCOName::cFCOName(iFCONameInfo* pNI) : cFCOName::cFCOName(iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/') iTypedSerializable(), mpPathName(0), mDelimiter('/')
{ {
SetNameInfo(pNI); SetNameInfo(pNI);
mpPathName = new cFCOName_i; mpPathName = new cFCOName_i;
@ -105,6 +105,7 @@ cFCOName::cFCOName(iFCONameInfo* pNI) :
} }
cFCOName::cFCOName(const cFCOName& rhs) : cFCOName::cFCOName(const cFCOName& rhs) :
iTypedSerializable(),
mpPathName(rhs.mpPathName), mpPathName(rhs.mpPathName),
mDelimiter(rhs.mDelimiter), mDelimiter(rhs.mDelimiter),
mbCaseSensitive(rhs.mbCaseSensitive) mbCaseSensitive(rhs.mbCaseSensitive)
@ -118,7 +119,7 @@ cFCOName::cFCOName(const cFCOName& rhs) :
} }
cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) : cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/') iTypedSerializable(), mpPathName(0), mDelimiter('/')
{ {
SetNameInfo(pNI); SetNameInfo(pNI);
mpPathName = new cFCOName_i; mpPathName = new cFCOName_i;
@ -132,7 +133,7 @@ cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) :
} }
cFCOName::cFCOName(const TCHAR* rhs, iFCONameInfo* pNI) : cFCOName::cFCOName(const TCHAR* rhs, iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/') iTypedSerializable(), mpPathName(0), mDelimiter('/')
{ {
SetNameInfo(pNI); SetNameInfo(pNI);
mpPathName = new cFCOName_i; mpPathName = new cFCOName_i;

4
src/fco/fcopropvector.cpp Normal file → Executable file
View File

@ -45,7 +45,7 @@ int cFCOPropVector::msBitlength(sizeof (uint32) * 8);
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Constructor -- Sets mSize. Default = 32. // Constructor -- Sets mSize. Default = 32.
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cFCOPropVector::cFCOPropVector(int size) cFCOPropVector::cFCOPropVector(int size) : iSerializable()
{ {
mSize = 32; mSize = 32;
mMask = 0; mMask = 0;
@ -65,7 +65,7 @@ cFCOPropVector::~cFCOPropVector()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Copy Constructor // Copy Constructor
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cFCOPropVector::cFCOPropVector(const cFCOPropVector &rhs) cFCOPropVector::cFCOPropVector(const cFCOPropVector &rhs) : iSerializable()
{ {
mSize = rhs.mSize; mSize = rhs.mSize;
mMask = rhs.mMask; mMask = rhs.mMask;

4
src/fco/fcosetimpl.cpp Normal file → Executable file
View File

@ -63,7 +63,7 @@ inline static const cFCOIterImpl* CreateIterator(const cFCOSetImpl* pSet)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// ctor and dtor // ctor and dtor
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cFCOSetImpl::cFCOSetImpl() cFCOSetImpl::cFCOSetImpl() : iFCOSet()
{ {
} }
@ -72,7 +72,7 @@ cFCOSetImpl::~cFCOSetImpl()
Clear(); Clear();
} }
cFCOSetImpl::cFCOSetImpl(const cFCOSetImpl& rhs) cFCOSetImpl::cFCOSetImpl(const cFCOSetImpl& rhs) : iFCOSet()
{ {
*this = rhs; *this = rhs;
} }

2
src/fco/fcospecimpl.cpp Normal file → Executable file
View File

@ -61,6 +61,7 @@ cFCOSpecImpl::cFCOSpecImpl(const TSTRING& name, void* pSrc, iFCOSpecHelper* pHel
} }
cFCOSpecImpl::cFCOSpecImpl() : cFCOSpecImpl::cFCOSpecImpl() :
iFCOSpec(),
mName(_T("Unnamed_FCOSpecImpl")), mName(_T("Unnamed_FCOSpecImpl")),
mpHelper(0) mpHelper(0)
{ {
@ -72,6 +73,7 @@ cFCOSpecImpl::cFCOSpecImpl() :
} }
cFCOSpecImpl::cFCOSpecImpl(const cFCOSpecImpl& rhs) : cFCOSpecImpl::cFCOSpecImpl(const cFCOSpecImpl& rhs) :
iFCOSpec(),
mpHelper(0) mpHelper(0)
{ {
*this = rhs; *this = rhs;

1
src/fco/fcospeclist.h Normal file → Executable file
View File

@ -151,6 +151,7 @@ protected:
}; };
inline cFCOSpecList::cFCOSpecList(const cFCOSpecList& rhs) inline cFCOSpecList::cFCOSpecList(const cFCOSpecList& rhs)
: iTypedSerializable()
{ {
*this = rhs; *this = rhs;
} }

2
src/fs/fspropset.cpp Normal file → Executable file
View File

@ -191,6 +191,7 @@ int cFSPropSet::GetNumFSProps()
// ctors. dtor, operator= // ctors. dtor, operator=
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cFSPropSet::cFSPropSet() : cFSPropSet::cFSPropSet() :
iFCOPropSet(),
mValidProps(cFSPropSet::PROP_NUMITEMS), mValidProps(cFSPropSet::PROP_NUMITEMS),
mUndefinedProps(cFSPropSet::PROP_NUMITEMS) mUndefinedProps(cFSPropSet::PROP_NUMITEMS)
{ {
@ -203,6 +204,7 @@ cFSPropSet::~cFSPropSet()
} }
cFSPropSet::cFSPropSet(const cFSPropSet& rhs) : cFSPropSet::cFSPropSet(const cFSPropSet& rhs) :
iFCOPropSet(),
mValidProps(cFSPropSet::PROP_NUMITEMS) mValidProps(cFSPropSet::PROP_NUMITEMS)
{ {
*this = rhs; *this = rhs;

3
src/tw/dbdatasource.cpp Normal file → Executable file
View File

@ -78,7 +78,8 @@ cDbDataSourceIter::cDbDataSourceIter(cHierDatabase* pDb, int genreNum )
// cDbDataSourceIter // cDbDataSourceIter
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
cDbDataSourceIter::cDbDataSourceIter( const cDbDataSourceIter& rhs ) cDbDataSourceIter::cDbDataSourceIter( const cDbDataSourceIter& rhs )
: mDbIter ( rhs.mDbIter ), : iFCODataSourceIter(),
mDbIter ( rhs.mDbIter ),
mFCOCreateFunc ( rhs.mFCOCreateFunc ), mFCOCreateFunc ( rhs.mFCOCreateFunc ),
mFlags ( rhs.mFlags ), mFlags ( rhs.mFlags ),
mpErrorBucket ( rhs.mpErrorBucket ) mpErrorBucket ( rhs.mpErrorBucket )

0
src/tw/headerinfo.h Normal file → Executable file
View File

5
src/twcrypto/bytequeue.cpp Normal file → Executable file
View File

@ -134,13 +134,14 @@ unsigned int cByteQueueNode::Peek(byte &outByte) const
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
cByteQueue::cByteQueue(int mNodeSize) cByteQueue::cByteQueue(int mNodeSize)
: mNodeSize(mNodeSize), : BufferedTransformation(),
mNodeSize(mNodeSize),
mCurrentSize(0) mCurrentSize(0)
{ {
head = tail = new cByteQueueNode(mNodeSize); head = tail = new cByteQueueNode(mNodeSize);
} }
cByteQueue::cByteQueue(const cByteQueue &copy) cByteQueue::cByteQueue(const cByteQueue &copy) : BufferedTransformation()
{ {
CopyFrom(copy); CopyFrom(copy);
} }