mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-22 03:13:24 +02:00
video_core/ast: Replace std::string with a constexpr std::string_view
Same behavior, but without the need to heap allocate
This commit is contained in:
parent
3a20d9734f
commit
5a0a9c7449
@ -350,11 +350,9 @@ private:
|
||||
std::string tabs_memo{};
|
||||
u32 memo_scope{};
|
||||
|
||||
static std::string tabs;
|
||||
static constexpr std::string_view tabs{" "};
|
||||
};
|
||||
|
||||
std::string ASTPrinter::tabs = " ";
|
||||
|
||||
std::string ASTManager::Print() {
|
||||
ASTPrinter printer{};
|
||||
printer.Visit(main_node);
|
||||
|
Loading…
Reference in New Issue
Block a user