mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 21:06:58 -05:00
debug_utils: Make BreakpointObserver class' constructor explicit
Avoids implicit conversions.
This commit is contained in:
parent
b6425c0511
commit
1e6a209649
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue