Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

video_core/ast: Replace std::string with a constexpr std::string_view

Lioncashd599c3c74b2d
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index 2627c563c4..f2ab0cc00a 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -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);