diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:14:25 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:14:25 +0100 |
commit | 74d469af3937518f7619a78bc2fe99a4d662deea (patch) | |
tree | 56f870978ce2befed64805ce6574261bac9c6ce9 /src/base.cpp | |
parent | 38b22990eae47525f4e8064a29e585a89788ee58 (diff) | |
parent | 1b957ed3a9d79a0cbc71e79acca82d893b40f8ac (diff) |
Merge branch 'master+exttype' into master+no-rtti
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/base.cpp b/src/base.cpp index 682899132..67b136ec8 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -95,7 +95,9 @@ ServiceProvider::~ServiceProvider() { } -ExtensionItem::ExtensionItem(const std::string& Key, Module* mod) : ServiceProvider(mod, Key, SERVICE_METADATA) +ExtensionItem::ExtensionItem(const std::string& Key, ExtensibleType exttype, Module* mod) + : ServiceProvider(mod, Key, SERVICE_METADATA) + , type(exttype) { } @@ -207,7 +209,8 @@ Extensible::~Extensible() ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Extensible destructor called without cull @%p", (void*)this); } -LocalExtItem::LocalExtItem(const std::string& Key, Module* mod) : ExtensionItem(Key, mod) +LocalExtItem::LocalExtItem(const std::string& Key, ExtensibleType exttype, Module* mod) + : ExtensionItem(Key, exttype, mod) { } @@ -224,8 +227,10 @@ void LocalExtItem::unserialize(SerializeFormat format, Extensible* container, co { } -LocalStringExt::LocalStringExt(const std::string& Key, Module* Owner) - : SimpleExtItem<std::string>(Key, Owner) { } +LocalStringExt::LocalStringExt(const std::string& Key, ExtensibleType exttype, Module* Owner) + : SimpleExtItem<std::string>(Key, exttype, Owner) +{ +} LocalStringExt::~LocalStringExt() { @@ -238,7 +243,8 @@ std::string LocalStringExt::serialize(SerializeFormat format, const Extensible* return ""; } -LocalIntExt::LocalIntExt(const std::string& Key, Module* mod) : LocalExtItem(Key, mod) +LocalIntExt::LocalIntExt(const std::string& Key, ExtensibleType exttype, Module* mod) + : LocalExtItem(Key, exttype, mod) { } @@ -270,7 +276,8 @@ void LocalIntExt::free(void*) { } -StringExtItem::StringExtItem(const std::string& Key, Module* mod) : ExtensionItem(Key, mod) +StringExtItem::StringExtItem(const std::string& Key, ExtensibleType exttype, Module* mod) + : ExtensionItem(Key, exttype, mod) { } |