1
0
Fork 0
forked from suyu/suyu

shader_ir: Move comment node string

Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
This commit is contained in:
Mat M 2018-12-21 03:22:26 -03:00 committed by ReinUsesLisp
parent d4fae3a699
commit 57a900cc45

View file

@ -492,7 +492,7 @@ private:
/// Commentary, can be dropped /// Commentary, can be dropped
class CommentNode final { class CommentNode final {
public: public:
explicit CommentNode(const std::string& text) : text{text} {} explicit CommentNode(std::string text) : text{std::move(text)} {}
const std::string& GetText() const { const std::string& GetText() const {
return text; return text;
@ -763,4 +763,4 @@ private:
Tegra::Shader::Header header; Tegra::Shader::Header header;
}; };
} // namespace VideoCommon::Shader } // namespace VideoCommon::Shader