fixed a compiler warning on the newest Mac XCode compiler: The init function of the buffer class was set to virtual but the derived function had a different number of funciton parameters. So the intention was actually NOT to be virtual. Therefore I removed the virtual from the functions and the warning is gone now.
This commit is contained in:
parent
6b1541b622
commit
e9c431cda9
1 changed files with 8 additions and 8 deletions
16
src/buffer.h
16
src/buffer.h
|
@ -51,8 +51,8 @@ public:
|
||||||
|
|
||||||
void SetIsSimulation ( const bool bNIsSim ) { bIsSimulation = bNIsSim; }
|
void SetIsSimulation ( const bool bNIsSim ) { bIsSimulation = bNIsSim; }
|
||||||
|
|
||||||
virtual void Init ( const int iNewMemSize,
|
void Init ( const int iNewMemSize,
|
||||||
const bool bPreserve = false )
|
const bool bPreserve = false )
|
||||||
{
|
{
|
||||||
// in simulation mode the size is not changed during operation -> we do
|
// in simulation mode the size is not changed during operation -> we do
|
||||||
// not have to implement special code for this case
|
// not have to implement special code for this case
|
||||||
|
@ -379,9 +379,9 @@ public:
|
||||||
CNetBuf ( const bool bNewIsSim = false ) :
|
CNetBuf ( const bool bNewIsSim = false ) :
|
||||||
CBufferBase<uint8_t> ( bNewIsSim ) {}
|
CBufferBase<uint8_t> ( bNewIsSim ) {}
|
||||||
|
|
||||||
virtual void Init ( const int iNewBlockSize,
|
void Init ( const int iNewBlockSize,
|
||||||
const int iNewNumBlocks,
|
const int iNewNumBlocks,
|
||||||
const bool bPreserve = false );
|
const bool bPreserve = false );
|
||||||
|
|
||||||
int GetSize() { return iMemSize / iBlockSize; }
|
int GetSize() { return iMemSize / iBlockSize; }
|
||||||
|
|
||||||
|
@ -399,9 +399,9 @@ class CNetBufWithStats : public CNetBuf
|
||||||
public:
|
public:
|
||||||
CNetBufWithStats();
|
CNetBufWithStats();
|
||||||
|
|
||||||
virtual void Init ( const int iNewBlockSize,
|
void Init ( const int iNewBlockSize,
|
||||||
const int iNewNumBlocks,
|
const int iNewNumBlocks,
|
||||||
const bool bPreserve = false );
|
const bool bPreserve = false );
|
||||||
|
|
||||||
virtual bool Put ( const CVector<uint8_t>& vecbyData, const int iInSize );
|
virtual bool Put ( const CVector<uint8_t>& vecbyData, const int iInSize );
|
||||||
virtual bool Get ( CVector<uint8_t>& vecbyData, const int iOutSize );
|
virtual bool Get ( CVector<uint8_t>& vecbyData, const int iOutSize );
|
||||||
|
|
Loading…
Reference in a new issue