aboutsummaryrefslogtreecommitdiffstats
path: root/src/cull.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /src/cull.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'src/cull.cpp')
-rw-r--r--src/cull.cpp14
1 files changed, 7 insertions, 7 deletions
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;
}