diff options
| author | Naios <naios-dev@live.de> | 2015-10-06 16:11:54 +0200 |
|---|---|---|
| committer | Naios <naios-dev@live.de> | 2015-10-06 16:11:54 +0200 |
| commit | a2908719c0a6d5a959d67824725e6605413fe076 (patch) | |
| tree | 4f9aad494271f8c03757f4fe4cde15749aeffebc /src | |
| parent | 63def8aa3291d0a6e5f83b289ad12c4c8a3cebd9 (diff) | |
Core/Bnetserver: Fix warnings caused through non virtual destructors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/bnetserver/Packets/PacketsCommon.h | 2 | ||||
| -rw-r--r-- | src/server/bnetserver/Server/ModuleManager.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/server/bnetserver/Packets/PacketsCommon.h b/src/server/bnetserver/Packets/PacketsCommon.h index a8eddd87463..2705a369ad5 100644 --- a/src/server/bnetserver/Packets/PacketsCommon.h +++ b/src/server/bnetserver/Packets/PacketsCommon.h @@ -26,6 +26,8 @@ namespace Battlenet { struct PrintableComponent { + virtual ~PrintableComponent() { } + virtual std::string ToString() const = 0; }; diff --git a/src/server/bnetserver/Server/ModuleManager.h b/src/server/bnetserver/Server/ModuleManager.h index ecd24a07363..dc65cf9a749 100644 --- a/src/server/bnetserver/Server/ModuleManager.h +++ b/src/server/bnetserver/Server/ModuleManager.h @@ -54,7 +54,7 @@ namespace Battlenet } } - ~ModuleInfo() + virtual ~ModuleInfo() { delete[] Data; } |
