summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-24 20:17:47 -0400
committerLioncash <mathew1800@gmail.com>2018-08-24 20:49:14 -0400
commit1e6a209649909a5cfa599aef3a1971cb34f5e27d (patch)
treef750af520e9dc8f9249836a4e59de9ab229d5c73 /src
parentb6425c0511f52c63f9f25f5ab8cf18325932aca3 (diff)
debug_utils: Make BreakpointObserver class' constructor explicit
Avoids implicit conversions.
Diffstat (limited to 'src')
-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:
class BreakPointObserver {
public:
/// Constructs the object such that it observes events of the given DebugContext.
- BreakPointObserver(std::shared_ptr<DebugContext> debug_context)
+ explicit BreakPointObserver(std::shared_ptr<DebugContext> debug_context)
: context_weak(debug_context) {
std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex);
debug_context->breakpoint_observers.push_back(this);