diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-28 00:55:42 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-28 00:55:42 +0000 |
commit | d5e36aa2b2ca26fe689ae9e29c74b3565dd018c7 (patch) | |
tree | 8bc1def53ab7817bfaeb183fed7872583a70acbd /src | |
parent | 3900997a0971efc350400f62bfcac8c29aa65885 (diff) |
Fix warnings from BSD build and work around the failures of BSD make
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11771 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/base.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/base.cpp b/src/base.cpp index 2b022688d..76e469482 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -91,6 +91,10 @@ ExtensionItem::ExtensionItem(const std::string& Key, Module* mod) : key(Key), ow { } +ExtensionItem::~ExtensionItem() +{ +} + void* ExtensionItem::get_raw(const Extensible* container) { ExtensibleStore::const_iterator i = container->extensions.find(key); @@ -175,6 +179,10 @@ LocalExtItem::LocalExtItem(const std::string& Key, Module* mod) : ExtensionItem( { } +LocalExtItem::~LocalExtItem() +{ +} + std::string LocalExtItem::serialize(SerializeFormat format, const Extensible* container, void* item) { return ""; @@ -187,6 +195,10 @@ void LocalExtItem::unserialize(SerializeFormat format, Extensible* container, co LocalStringExt::LocalStringExt(const std::string& Key, Module* Owner) : SimpleExtItem<std::string>(Key, Owner) { } +LocalStringExt::~LocalStringExt() +{ +} + std::string LocalStringExt::serialize(SerializeFormat format, const Extensible* container, void* item) { if (item && format == FORMAT_USER) @@ -198,6 +210,10 @@ LocalIntExt::LocalIntExt(const std::string& Key, Module* mod) : LocalExtItem(Key { } +LocalIntExt::~LocalIntExt() +{ +} + std::string LocalIntExt::serialize(SerializeFormat format, const Extensible* container, void* item) { if (format != FORMAT_USER) @@ -226,6 +242,10 @@ StringExtItem::StringExtItem(const std::string& Key, Module* mod) : ExtensionIte { } +StringExtItem::~StringExtItem() +{ +} + std::string* StringExtItem::get(const Extensible* container) { return static_cast<std::string*>(get_raw(container)); |