Fixed build broken in 218ed813d0

This commit is contained in:
Shauren
2012-02-28 23:03:38 +01:00
parent ed16a4a0dd
commit 77c848b937
+3 -3
View File
@@ -34,7 +34,7 @@ class ByteBufferException
}
protected:
virtual void PrintError() const = 0;
virtual void PrintError() const = 0 {};
size_t Pos;
size_t Size;
@@ -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);
@@ -65,7 +65,7 @@ class ByteBufferSourceException : public ByteBufferException
: ByteBufferException(pos, size, valueSize) {}
protected:
void PrintError() const override
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);