summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-07-16 11:52:08 -0400
committerGravatar Lioncash2019-07-18 21:03:30 -0400
commita162a844d2ede2b13d4a52f2dae37980be91cb1a (patch)
treeb262ff3437cbadd73dda65a022c9228e0732d043 /src
parentvideo_core/control_flow: Use std::move where applicable (diff)
downloadyuzu-a162a844d2ede2b13d4a52f2dae37980be91cb1a.tar.gz
yuzu-a162a844d2ede2b13d4a52f2dae37980be91cb1a.tar.xz
yuzu-a162a844d2ede2b13d4a52f2dae37980be91cb1a.zip
video_core/control_flow: Remove unnecessary BlockStack copy constructor
This is the default behavior of the copy constructor, so it doesn't need to be specified. While we're at it we can make the other non-default constructor explicit.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/control_flow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/control_flow.cpp b/src/video_core/shader/control_flow.cpp
index 4d500320a..37792d420 100644
--- a/src/video_core/shader/control_flow.cpp
+++ b/src/video_core/shader/control_flow.cpp
@@ -29,8 +29,7 @@ struct Query {
29 29
30struct BlockStack { 30struct BlockStack {
31 BlockStack() = default; 31 BlockStack() = default;
32 BlockStack(const BlockStack& b) = default; 32 explicit BlockStack(const Query& q) : ssy_stack{q.ssy_stack}, pbk_stack{q.pbk_stack} {}
33 BlockStack(const Query& q) : ssy_stack{q.ssy_stack}, pbk_stack{q.pbk_stack} {}
34 std::stack<u32> ssy_stack{}; 33 std::stack<u32> ssy_stack{};
35 std::stack<u32> pbk_stack{}; 34 std::stack<u32> pbk_stack{};
36}; 35};