From 2af957c2ad95f496f64babdb9b642bdaa3da2e34 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 1 Apr 2024 00:17:00 +0200 Subject: Removed unneccessary c_str() from previous commit --- src/server/game/Entities/Object/ObjectGuid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Object/ObjectGuid.cpp b/src/server/game/Entities/Object/ObjectGuid.cpp index 2ac6a236094..ffa7b395e3a 100644 --- a/src/server/game/Entities/Object/ObjectGuid.cpp +++ b/src/server/game/Entities/Object/ObjectGuid.cpp @@ -749,16 +749,16 @@ namespace } template -inline auto fmt::formatter::format(ObjectGuid const& guid, FormatContext& ctx) const -> decltype(ctx.out()) +auto fmt::formatter::format(ObjectGuid const& guid, FormatContext& ctx) const -> decltype(ctx.out()) { if (guid.GetHigh() >= HighGuid::Count) - return format(ObjectGuid::ToStringFailed, ctx); + return this->format(ObjectGuid::ToStringFailed, ctx); int32 type = AsUnderlyingType(guid.GetHigh()); if (!Info.ClientFormatFunction[type]) - return format(ObjectGuid::ToStringFailed, ctx); + return this->format(ObjectGuid::ToStringFailed, ctx); - return Info.ClientFormatFunction[type](ctx, Info.Names[type].c_str(), guid); + return Info.ClientFormatFunction[type](ctx, Info.Names[type], guid); } template TC_GAME_API fmt::appender fmt::formatter::format(ObjectGuid const&, format_context&) const; -- cgit v1.2.3