diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-02-28 23:03:38 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-02-28 23:03:38 +0100 |
commit | 77c848b93743db59eec8009a2ff0293479560dbe (patch) | |
tree | baab865dea6f480f8c42cdb828d50e1edb598183 | |
parent | ed16a4a0dd71317aafffa2c856126ad1fe91d4dd (diff) |
Fixed build broken in 218ed813d0a2d26fd594ddafa2132cc7c5209bb4
-rwxr-xr-x | src/server/shared/Packets/ByteBuffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index abd0ed357e4..46e34126ae1 100755 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -34,8 +34,8 @@ class ByteBufferException } protected: - virtual void PrintError() const = 0; - + virtual void PrintError() const = 0 {}; + size_t Pos; size_t Size; size_t ValueSize; @@ -48,7 +48,7 @@ class ByteBufferPositionException : public ByteBufferException : ByteBufferException(pos, size, valueSize), _add(add) {} protected: - void PrintError() const override + void PrintError() const { sLog->outError("Attempted to %s value with size: "SIZEFMTD" in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") " , ValueSize, (_add ? "put" : "get"), Pos, Size); @@ -64,8 +64,8 @@ class ByteBufferSourceException : public ByteBufferException ByteBufferSourceException(size_t pos, size_t size, size_t valueSize) : ByteBufferException(pos, size, valueSize) {} - protected: - void PrintError() const override + protected: + void PrintError() const { sLog->outError("Attempted to put a %s in ByteBuffer (pos: "SIZEFMTD" size: "SIZEFMTD")", (ValueSize > 0 ? "NULL-pointer" : "zero-sized value"), Pos, Size); @@ -437,7 +437,7 @@ class ByteBuffer void put(size_t pos, const uint8 *src, size_t cnt) { if (pos + cnt > size()) - throw ByteBufferPositionException(true, pos, cnt, size()); + throw ByteBufferPositionException(true, pos, cnt, size()); if (!src) throw ByteBufferSourceException(_wpos, size(), cnt); |