aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-04-01 00:17:00 +0200
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:32:06 +0200
commit0426f8df6f5e60d24f78e14363f043c7a5b72e72 (patch)
treea067dea2118e241ba1c2a493612893152d9ba28e
parentc1ed3a6ea89b1f00307e872afd421340268d7f63 (diff)
Removed unneccessary c_str() from previous commit
(cherry picked from commit 2af957c2ad95f496f64babdb9b642bdaa3da2e34)
-rw-r--r--src/server/game/Entities/Object/ObjectGuid.cpp8
1 files changed, 4 insertions, 4 deletions
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 <typename FormatContext>
-inline auto fmt::formatter<ObjectGuid>::format(ObjectGuid const& guid, FormatContext& ctx) const -> decltype(ctx.out())
+auto fmt::formatter<ObjectGuid>::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<ObjectGuid>::format<fmt::format_context>(ObjectGuid const&, format_context&) const;