From 00143afc01dbca797471181105738042e89f15ae Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 13 Apr 2024 00:04:42 +0200 Subject: Use string view everywhere --- deimos/core/log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'deimos/core/log.cpp') 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 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); -- cgit