From e9c431cda984faddd16aee6cbd17811e26083ed7 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 15 Jun 2014 19:33:27 +0000 Subject: [PATCH] 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. --- src/buffer.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/buffer.h b/src/buffer.h index 6cce18dc..079c39f6 100755 --- a/src/buffer.h +++ b/src/buffer.h @@ -51,8 +51,8 @@ public: void SetIsSimulation ( const bool bNIsSim ) { bIsSimulation = bNIsSim; } - virtual void Init ( const int iNewMemSize, - const bool bPreserve = false ) + void Init ( const int iNewMemSize, + const bool bPreserve = false ) { // in simulation mode the size is not changed during operation -> we do // not have to implement special code for this case @@ -379,9 +379,9 @@ public: CNetBuf ( const bool bNewIsSim = false ) : CBufferBase ( bNewIsSim ) {} - virtual void Init ( const int iNewBlockSize, - const int iNewNumBlocks, - const bool bPreserve = false ); + void Init ( const int iNewBlockSize, + const int iNewNumBlocks, + const bool bPreserve = false ); int GetSize() { return iMemSize / iBlockSize; } @@ -399,9 +399,9 @@ class CNetBufWithStats : public CNetBuf public: CNetBufWithStats(); - virtual void Init ( const int iNewBlockSize, - const int iNewNumBlocks, - const bool bPreserve = false ); + void Init ( const int iNewBlockSize, + const int iNewNumBlocks, + const bool bPreserve = false ); virtual bool Put ( const CVector& vecbyData, const int iInSize ); virtual bool Get ( CVector& vecbyData, const int iOutSize );