aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-04-01 00:17:00 +0200
committerShauren <shauren.trinity@gmail.com>2024-04-01 00:17:00 +0200
commit2af957c2ad95f496f64babdb9b642bdaa3da2e34 (patch)
treeedad398fb5bcebdcac5b08ef7365daf236d5437a /src
parent4131022f6c8283d387f1cdc8f2f1e8df9375ea54 (diff)
Removed unneccessary c_str() from previous commit
Diffstat (limited to 'src')
-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;