Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

shader_ir: Move comment node string

Mat M15a03ee53fc2
diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h
index 8ad2a366fe..8a1985526e 100644
--- a/src/video_core/shader/shader_ir.h
+++ b/src/video_core/shader/shader_ir.h
@@ -492,7 +492,7 @@ private:
/// Commentary, can be dropped
class CommentNode final {
public:
- explicit CommentNode(const std::string& text) : text{text} {}
+ explicit CommentNode(std::string text) : text{std::move(text)} {}
const std::string& GetText() const {
return text;
@@ -763,4 +763,4 @@ private:
Tegra::Shader::Header header;
};
-} // namespace VideoCommon::Shader
\ No newline at end of file
+} // namespace VideoCommon::Shader