diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-13 00:04:42 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-13 00:04:48 +0200 |
commit | 00143afc01dbca797471181105738042e89f15ae (patch) | |
tree | d2b3fa92ed5d17ae5a145758bed637f996cbd501 /deimos/core/log.cpp | |
parent | 8db26a7350aad53ed73a127f9b8eb6ef15bf0be1 (diff) |
Use string view everywhere
Diffstat (limited to 'deimos/core/log.cpp')
-rw-r--r-- | deimos/core/log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/deimos/core/log.cpp b/deimos/core/log.cpp index 3ba4fbc..e05c360 100644 --- a/deimos/core/log.cpp +++ b/deimos/core/log.cpp @@ -35,8 +35,7 @@ public: m_writer(os_console_api, OsConsoleType::kStdOut)
{}
- // @Todo Use string views
- void Log(LogSeverity severity, const SourceLocation& location, Span<const char> msg) override
+ void Log(LogSeverity severity, const SourceLocation& location, StringView msg) override
{
Format(&m_writer, "$[ $ ] $:$: $\033[0m\n", SeverityToColor(severity),
SeverityToStr(severity), location.file, location.line, msg);
|