Explorar el Código

shader/node: std::move Meta instance within OperationNode constructor

Allows usages of the constructor to avoid an unnecessary copy.
Lioncash hace 6 años
padre
commit
67658dd6e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/video_core/shader/node.h

+ 1 - 1
src/video_core/shader/node.h

@@ -410,7 +410,7 @@ public:
     explicit OperationNode(OperationCode code) : OperationNode(code, Meta{}) {}
 
     explicit OperationNode(OperationCode code, Meta meta)
-        : OperationNode(code, meta, std::vector<Node>{}) {}
+        : OperationNode(code, std::move(meta), std::vector<Node>{}) {}
 
     explicit OperationNode(OperationCode code, std::vector<Node> operands)
         : OperationNode(code, Meta{}, std::move(operands)) {}