mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 22:15:46 +00: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
7d18851449
commit
d599c3c74b
1 changed files with 1 additions and 3 deletions
|
@ -350,11 +350,9 @@ private:
|
||||||
std::string tabs_memo{};
|
std::string tabs_memo{};
|
||||||
u32 memo_scope{};
|
u32 memo_scope{};
|
||||||
|
|
||||||
static std::string tabs;
|
static constexpr std::string_view tabs{" "};
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string ASTPrinter::tabs = " ";
|
|
||||||
|
|
||||||
std::string ASTManager::Print() {
|
std::string ASTManager::Print() {
|
||||||
ASTPrinter printer{};
|
ASTPrinter printer{};
|
||||||
printer.Visit(main_node);
|
printer.Visit(main_node);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue