mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
This commit is contained in:
@@ -42,7 +42,7 @@ ByteBufferPositionException::ByteBufferPositionException(size_t pos, size_t size
|
||||
|
||||
ByteBufferInvalidValueException::ByteBufferInvalidValueException(char const* type, char const* value)
|
||||
{
|
||||
message().assign(Trinity::StringFormat("Invalid %s value (%s) found in ByteBuffer", type, value));
|
||||
message().assign(Trinity::StringFormat("Invalid {} value ({}) found in ByteBuffer", type, value));
|
||||
}
|
||||
|
||||
ByteBuffer& ByteBuffer::operator>>(float& value)
|
||||
@@ -177,7 +177,7 @@ void ByteBuffer::print_storage() const
|
||||
o << read<uint8>(i) << " - ";
|
||||
o << " ";
|
||||
|
||||
TC_LOG_TRACE("network", "%s", o.str().c_str());
|
||||
TC_LOG_TRACE("network", "{}", o.str());
|
||||
}
|
||||
|
||||
void ByteBuffer::textlike() const
|
||||
@@ -194,7 +194,7 @@ void ByteBuffer::textlike() const
|
||||
o << buf;
|
||||
}
|
||||
o << " ";
|
||||
TC_LOG_TRACE("network", "%s", o.str().c_str());
|
||||
TC_LOG_TRACE("network", "{}", o.str());
|
||||
}
|
||||
|
||||
void ByteBuffer::hexlike() const
|
||||
@@ -226,5 +226,5 @@ void ByteBuffer::hexlike() const
|
||||
o << buf;
|
||||
}
|
||||
o << " ";
|
||||
TC_LOG_TRACE("network", "%s", o.str().c_str());
|
||||
TC_LOG_TRACE("network", "{}", o.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user