From 6b123d4bc61c2db8e379dd5e681834c4053e661d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Aug 2024 10:26:43 +0100 Subject: Use C++20 instead of fmtlib when available. --- src/cull.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/cull.cpp') diff --git a/src/cull.cpp b/src/cull.cpp index 4b25bca67..a8044b481 100644 --- a/src/cull.cpp +++ b/src/cull.cpp @@ -36,7 +36,7 @@ Cullable::Cullable() if (ServerInstance) { ServerInstance->Logs.Debug("CULL", "Cullable::+{} @{}", - typeid(*this).name(), fmt::ptr(this)); + typeid(*this).name(), FMT_PTR(this)); } #endif } @@ -47,7 +47,7 @@ Cullable::~Cullable() if (ServerInstance) { ServerInstance->Logs.Debug("CULL", "Cullable::~{} @{}", - typeid(*this).name(), fmt::ptr(this)); + typeid(*this).name(), FMT_PTR(this)); } #endif } @@ -58,7 +58,7 @@ Cullable::Result Cullable::Cull() if (ServerInstance) { ServerInstance->Logs.Debug("CULL", "Cullable::-{} @{}", - typeid(*this).name(), fmt::ptr(this)); + typeid(*this).name(), FMT_PTR(this)); } #endif return {}; @@ -92,7 +92,7 @@ void CullList::Apply() { #ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs.Debug("CULL", "Culling {} @{}", typeid(*c).name(), - fmt::ptr(c)); + FMT_PTR(c)); #endif c->Cull(); @@ -104,10 +104,10 @@ void CullList::Apply() { #ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs.Debug("CULL", "BUG: {} @{} was added to the cull list twice!", - typeid(*c).name(), fmt::ptr(c)); + typeid(*c).name(), FMT_PTR(c)); #else ServerInstance->Logs.Debug("CULL", "BUG: @{} was added to the cull list twice!", - fmt::ptr(c)); + FMT_PTR(c)); #endif } } @@ -117,7 +117,7 @@ void CullList::Apply() { #ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs.Debug("CULL", "Deleting {} @{}", typeid(*c).name(), - fmt::ptr(c)); + FMT_PTR(c)); #endif delete c; } -- cgit v1.3.1-10-gc9f91