VERY experimental Nintendo Switch 2 emulator
C++
glsl_shader_decompiler: Use std::string_view instead of std::string for AddLine()
Lioncash2259f5d56b44
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cppindex c55febbfaa..22a413b73a 100644--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp@@ -5,6 +5,7 @@#include <map>#include <set>#include <string>+#include <string_view>#include "common/assert.h"#include "common/common_types.h"#include "video_core/engines/shader_bytecode.h"@@ -109,7 +110,7 @@ private:class ShaderWriter {public:- void AddLine(const std::string& text) {+ void AddLine(std::string_view text) {DEBUG_ASSERT(scope >= 0);if (!text.empty()) {AppendIndentation();