summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar Mat M2018-12-21 03:22:26 -0300
committerGravatar ReinUsesLisp2019-01-15 17:54:52 -0300
commit57a900cc45424ace03db9f021c0b568339745bee (patch)
tree321a3aae79a8b1745211d719268bb6cf2f6adcdc /src/video_core
parentshader_ir: Address feedback to avoid UB in bit casting (diff)
downloadyuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.gz
yuzu-57a900cc45424ace03db9f021c0b568339745bee.tar.xz
yuzu-57a900cc45424ace03db9f021c0b568339745bee.zip
shader_ir: Move comment node string
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
Diffstat (limited to 'src/video_core')
-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:
492/// Commentary, can be dropped 492/// Commentary, can be dropped
493class CommentNode final { 493class CommentNode final {
494public: 494public:
495 explicit CommentNode(const std::string& text) : text{text} {} 495 explicit CommentNode(std::string text) : text{std::move(text)} {}
496 496
497 const std::string& GetText() const { 497 const std::string& GetText() const {
498 return text; 498 return text;
@@ -763,4 +763,4 @@ private:
763 Tegra::Shader::Header header; 763 Tegra::Shader::Header header;
764}; 764};
765 765
766} // namespace VideoCommon::Shader \ No newline at end of file 766} // namespace VideoCommon::Shader