mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Removed unneccessary c_str() from previous commit
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user