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.
This commit is contained in:
parent
87e6d5351e
commit
316fef5602
Notes:
sideshowbarker
2024-07-18 11:23:30 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/316fef56025 Pull-request: https://github.com/SerenityOS/serenity/pull/8260 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
private:
|
||||
static inline size_t m_depth = 0;
|
||||
SourceLocation m_location;
|
||||
StringView m_extra;
|
||||
String m_extra;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Reference in a new issue