summaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-24 20:17:47 -0400
committerGravatar Lioncash2018-08-24 20:49:14 -0400
commit1e6a209649909a5cfa599aef3a1971cb34f5e27d (patch)
treef750af520e9dc8f9249836a4e59de9ab229d5c73 /src/video_core/debug_utils
parentdebug_utils: Initialize active_breakpoint member of DebugContext (diff)
downloadyuzu-1e6a209649909a5cfa599aef3a1971cb34f5e27d.tar.gz
yuzu-1e6a209649909a5cfa599aef3a1971cb34f5e27d.tar.xz
yuzu-1e6a209649909a5cfa599aef3a1971cb34f5e27d.zip
debug_utils: Make BreakpointObserver class' constructor explicit
Avoids implicit conversions.
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index 08356f103..427ca154c 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -46,7 +46,7 @@ public:
46 class BreakPointObserver { 46 class BreakPointObserver {
47 public: 47 public:
48 /// Constructs the object such that it observes events of the given DebugContext. 48 /// Constructs the object such that it observes events of the given DebugContext.
49 BreakPointObserver(std::shared_ptr<DebugContext> debug_context) 49 explicit BreakPointObserver(std::shared_ptr<DebugContext> debug_context)
50 : context_weak(debug_context) { 50 : context_weak(debug_context) {
51 std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex); 51 std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex);
52 debug_context->breakpoint_observers.push_back(this); 52 debug_context->breakpoint_observers.push_back(this);