diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-24 20:47:57 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-24 20:47:57 +0200 |
commit | 31c220c7178f3a8ae7a803e46d3d568d7ff56848 (patch) | |
tree | f1fc84611cb2403ff8f7d34b9590f284e1d6a1f6 /deimos/core/status.cpp | |
parent | 98c8fd5d39ee645922f071b6433308a813245500 (diff) |
Reword custom formatter to be simpler
Diffstat (limited to 'deimos/core/status.cpp')
-rw-r--r-- | deimos/core/status.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deimos/core/status.cpp b/deimos/core/status.cpp index efdd6df..10965bc 100644 --- a/deimos/core/status.cpp +++ b/deimos/core/status.cpp @@ -86,9 +86,8 @@ void Status::Unref() const }
}
-void Status::FormatStatus(IWriter* writer, const void* payload)
+void DeimosFormat(IWriter* writer, const Status& status)
{
- const auto& status = *(const Status*)payload; // NOLINT
if (status.IsInline())
{
Format(writer, "[$]", StatusCodeToString(status.code()));
|