From 316fef56025da355bceb8c2fb6cf87be4e2f26d5 Mon Sep 17 00:00:00 2001 From: Itamar Date: Sat, 26 Jun 2021 14:44:32 +0300 Subject: [PATCH] AK: Store the 'extra' field of ScopeLogger as String It was previously stored as a StringView, which prevented us from using temporary strings in the 'extra' argument. The performance hit doesn't really matter because ScopeLogger is used exclusively for debugging. --- AK/ScopeLogger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/ScopeLogger.h b/AK/ScopeLogger.h index a54af87c32..418027862c 100644 --- a/AK/ScopeLogger.h +++ b/AK/ScopeLogger.h @@ -50,7 +50,7 @@ public: private: static inline size_t m_depth = 0; SourceLocation m_location; - StringView m_extra; + String m_extra; }; template<>