Procházet zdrojové kódy

shader_ir: Move comment node string

Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
Mat M před 7 roky
rodič
revize
57a900cc45
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/video_core/shader/shader_ir.h

+ 2 - 2
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
+} // namespace VideoCommon::Shader