summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-12-21 07:22:26 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:52 +0100
commit57a900cc45424ace03db9f021c0b568339745bee (patch)
tree321a3aae79a8b1745211d719268bb6cf2f6adcdc /src/video_core/shader
parentshader_ir: Address feedback to avoid UB in bit casting (diff)
downloadyuzu-57a900cc45424ace03db9f021c0b568339745bee.tar
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.gz
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.bz2
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.lz
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.xz
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.zst
yuzu-57a900cc45424ace03db9f021c0b568339745bee.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/shader_ir.h4
1 files changed, 2 insertions, 2 deletions
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