From 57a900cc45424ace03db9f021c0b568339745bee Mon Sep 17 00:00:00 2001 From: Mat M Date: Fri, 21 Dec 2018 03:22:26 -0300 Subject: shader_ir: Move comment node string Co-Authored-By: ReinUsesLisp --- src/video_core/shader/shader_ir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core/shader') diff --git a/src/video_core/shader/shader_ir.h b/src/video_core/shader/shader_ir.h index 8ad2a366f..8a1985526 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 -- cgit v1.2.3