diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /src/extensible.cpp | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/extensible.cpp')
| -rw-r--r-- | src/extensible.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp index bb236061d..88230ae9a 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -55,7 +55,10 @@ Extensible::Extensible() Extensible::~Extensible() { if ((!extensions.empty() || !culled) && ServerInstance) - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Extensible destructor called without cull @%p", (void*)this); + { + ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "Extensible destructor called without cull @%p", + static_cast<void*>(this)); + } } Cullable::Result Extensible::Cull() @@ -137,15 +140,15 @@ void ExtensionItem::Sync(const Extensible* container, void* item) switch (type) { case ExtensionItem::EXT_CHANNEL: - ServerInstance->PI->SendMetaData((Channel*)container, name, networkstr); + ServerInstance->PI->SendMetaData(static_cast<const Channel*>(container), name, networkstr); break; case ExtensionItem::EXT_MEMBERSHIP: - ServerInstance->PI->SendMetaData((Membership*)container, name, networkstr); + ServerInstance->PI->SendMetaData(static_cast<const Membership*>(container), name, networkstr); break; case ExtensionItem::EXT_USER: - ServerInstance->PI->SendMetaData((User*)container, name, networkstr); + ServerInstance->PI->SendMetaData(static_cast<const User*>(container), name, networkstr); break; } } |
