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
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
void SetIsSimulation ( const bool bNIsSim ) { bIsSimulation = bNIsSim; }
|
||||
|
||||
virtual void Init ( const int iNewMemSize,
|
||||
void Init ( const int iNewMemSize,
|
||||
const bool bPreserve = false )
|
||||
{
|
||||
// in simulation mode the size is not changed during operation -> we do
|
||||
|
@ -379,7 +379,7 @@ public:
|
|||
CNetBuf ( const bool bNewIsSim = false ) :
|
||||
CBufferBase<uint8_t> ( bNewIsSim ) {}
|
||||
|
||||
virtual void Init ( const int iNewBlockSize,
|
||||
void Init ( const int iNewBlockSize,
|
||||
const int iNewNumBlocks,
|
||||
const bool bPreserve = false );
|
||||
|
||||
|
@ -399,7 +399,7 @@ class CNetBufWithStats : public CNetBuf
|
|||
public:
|
||||
CNetBufWithStats();
|
||||
|
||||
virtual void Init ( const int iNewBlockSize,
|
||||
void Init ( const int iNewBlockSize,
|
||||
const int iNewNumBlocks,
|
||||
const bool bPreserve = false );
|
||||
|
||||
|
|
Loading…
Reference in a new issue