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)
: mID(rhs.mID),
: iSerializable(),
mID(rhs.mID),
mVersion(rhs.mVersion),
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
cFileHeaderID::cFileHeaderID( const cFileHeaderID& rhs ) :
mIDLen( rhs.mIDLen )
iSerializable(), mIDLen( rhs.mIDLen )
{
memcpy( mID, rhs.mID, MAXBYTES );
}

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

@ -93,7 +93,7 @@ void cFCOName::ClearNameTable()
// ctor, dtor
///////////////////////////////////////////////////////////////////////////////
cFCOName::cFCOName(iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/')
iTypedSerializable(), mpPathName(0), mDelimiter('/')
{
SetNameInfo(pNI);
mpPathName = new cFCOName_i;
@ -105,6 +105,7 @@ cFCOName::cFCOName(iFCONameInfo* pNI) :
}
cFCOName::cFCOName(const cFCOName& rhs) :
iTypedSerializable(),
mpPathName(rhs.mpPathName),
mDelimiter(rhs.mDelimiter),
mbCaseSensitive(rhs.mbCaseSensitive)
@ -117,8 +118,8 @@ cFCOName::cFCOName(const cFCOName& rhs) :
#endif
}
cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/')
cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) :
iTypedSerializable(), mpPathName(0), mDelimiter('/')
{
SetNameInfo(pNI);
mpPathName = new cFCOName_i;
@ -132,7 +133,7 @@ cFCOName::cFCOName(const TSTRING& rhs, iFCONameInfo* pNI) :
}
cFCOName::cFCOName(const TCHAR* rhs, iFCONameInfo* pNI) :
mpPathName(0), mDelimiter('/')
iTypedSerializable(), mpPathName(0), mDelimiter('/')
{
SetNameInfo(pNI);
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.
///////////////////////////////////////////////////////////////////////////////
cFCOPropVector::cFCOPropVector(int size)
cFCOPropVector::cFCOPropVector(int size) : iSerializable()
{
mSize = 32;
mMask = 0;
@ -65,7 +65,7 @@ cFCOPropVector::~cFCOPropVector()
///////////////////////////////////////////////////////////////////////////////
// Copy Constructor
///////////////////////////////////////////////////////////////////////////////
cFCOPropVector::cFCOPropVector(const cFCOPropVector &rhs)
cFCOPropVector::cFCOPropVector(const cFCOPropVector &rhs) : iSerializable()
{
mSize = rhs.mSize;
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
///////////////////////////////////////////////////////////////////////////////
cFCOSetImpl::cFCOSetImpl()
cFCOSetImpl::cFCOSetImpl() : iFCOSet()
{
}
@ -72,7 +72,7 @@ cFCOSetImpl::~cFCOSetImpl()
Clear();
}
cFCOSetImpl::cFCOSetImpl(const cFCOSetImpl& rhs)
cFCOSetImpl::cFCOSetImpl(const cFCOSetImpl& rhs) : iFCOSet()
{
*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() :
iFCOSpec(),
mName(_T("Unnamed_FCOSpecImpl")),
mpHelper(0)
{
@ -72,6 +73,7 @@ cFCOSpecImpl::cFCOSpecImpl() :
}
cFCOSpecImpl::cFCOSpecImpl(const cFCOSpecImpl& rhs) :
iFCOSpec(),
mpHelper(0)
{
*this = rhs;

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

@ -150,7 +150,8 @@ protected:
mutable std::list<cFCOSpecList::PairType>::iterator mIter;
};
inline cFCOSpecList::cFCOSpecList(const cFCOSpecList& rhs)
inline cFCOSpecList::cFCOSpecList(const cFCOSpecList& rhs)
: iTypedSerializable()
{
*this = rhs;
}

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

@ -191,6 +191,7 @@ int cFSPropSet::GetNumFSProps()
// ctors. dtor, operator=
///////////////////////////////////////////////////////////////////////////////
cFSPropSet::cFSPropSet() :
iFCOPropSet(),
mValidProps(cFSPropSet::PROP_NUMITEMS),
mUndefinedProps(cFSPropSet::PROP_NUMITEMS)
{
@ -203,6 +204,7 @@ cFSPropSet::~cFSPropSet()
}
cFSPropSet::cFSPropSet(const cFSPropSet& rhs) :
iFCOPropSet(),
mValidProps(cFSPropSet::PROP_NUMITEMS)
{
*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( const cDbDataSourceIter& rhs )
: mDbIter ( rhs.mDbIter ),
: iFCODataSourceIter(),
mDbIter ( rhs.mDbIter ),
mFCOCreateFunc ( rhs.mFCOCreateFunc ),
mFlags ( rhs.mFlags ),
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)
: mNodeSize(mNodeSize),
: BufferedTransformation(),
mNodeSize(mNodeSize),
mCurrentSize(0)
{
head = tail = new cByteQueueNode(mNodeSize);
}
cByteQueue::cByteQueue(const cByteQueue &copy)
cByteQueue::cByteQueue(const cByteQueue &copy) : BufferedTransformation()
{
CopyFrom(copy);
}