From 7eff1c8f53dd896ada4afaaedbb5233792caa6d8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 29 Feb 2012 12:02:28 +0100 Subject: Core: Build fix (for real this time) and warning fix --- src/server/game/Globals/ObjectMgr.cpp | 2 +- src/server/shared/Packets/ByteBuffer.cpp | 22 ++++++++++++++++++++++ src/server/shared/Packets/ByteBuffer.h | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/server/shared/Packets/ByteBuffer.cpp (limited to 'src') diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 7834a1cc4a3..11977280177 100755 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -7079,7 +7079,7 @@ void ObjectMgr::LoadNPCSpellClickSpells() uint32 oldMSTime = getMSTime(); _spellClickInfoStore.clear(); - // 0 1 2 3 + // 0 1 2 3 QueryResult result = WorldDatabase.Query("SELECT npc_entry, spell_id, cast_flags, user_type FROM npc_spellclick_spells"); if (!result) diff --git a/src/server/shared/Packets/ByteBuffer.cpp b/src/server/shared/Packets/ByteBuffer.cpp new file mode 100644 index 00000000000..a64bb926d04 --- /dev/null +++ b/src/server/shared/Packets/ByteBuffer.cpp @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2008-2012 TrinityCore + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "ByteBuffer.h" + +void ByteBufferException::PrintError() const +{ +} diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 46e34126ae1..3cd6ff73b1e 100755 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -34,7 +34,7 @@ class ByteBufferException } protected: - virtual void PrintError() const = 0 {}; + virtual void PrintError() const = 0; size_t Pos; size_t Size; -- cgit v1.2.3