소스 검색

debug_utils: Make BreakpointObserver class' constructor explicit

Avoids implicit conversions.
Lioncash 8 년 전
부모
커밋
1e6a209649
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video_core/debug_utils/debug_utils.h

+ 1 - 1
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);