diff options
Diffstat (limited to 'lldb/source/Breakpoint/WatchpointOptions.cpp')
-rw-r--r-- | lldb/source/Breakpoint/WatchpointOptions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Breakpoint/WatchpointOptions.cpp b/lldb/source/Breakpoint/WatchpointOptions.cpp index 026bf2f746ae..f01f5ad3dd27 100644 --- a/lldb/source/Breakpoint/WatchpointOptions.cpp +++ b/lldb/source/Breakpoint/WatchpointOptions.cpp @@ -1,4 +1,4 @@ -//===-- WatchpointOptions.cpp -----------------------------------*- C++ -*-===// +//===-- WatchpointOptions.cpp ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -36,7 +36,7 @@ WatchpointOptions::WatchpointOptions(const WatchpointOptions &rhs) m_callback_is_synchronous(rhs.m_callback_is_synchronous), m_thread_spec_up() { if (rhs.m_thread_spec_up != nullptr) - m_thread_spec_up.reset(new ThreadSpec(*rhs.m_thread_spec_up)); + m_thread_spec_up = std::make_unique<ThreadSpec>(*rhs.m_thread_spec_up); } // WatchpointOptions assignment operator @@ -46,7 +46,7 @@ operator=(const WatchpointOptions &rhs) { m_callback_baton_sp = rhs.m_callback_baton_sp; m_callback_is_synchronous = rhs.m_callback_is_synchronous; if (rhs.m_thread_spec_up != nullptr) - m_thread_spec_up.reset(new ThreadSpec(*rhs.m_thread_spec_up)); + m_thread_spec_up = std::make_unique<ThreadSpec>(*rhs.m_thread_spec_up); return *this; } @@ -108,7 +108,7 @@ const ThreadSpec *WatchpointOptions::GetThreadSpecNoCreate() const { ThreadSpec *WatchpointOptions::GetThreadSpec() { if (m_thread_spec_up == nullptr) - m_thread_spec_up.reset(new ThreadSpec()); + m_thread_spec_up = std::make_unique<ThreadSpec>(); return m_thread_spec_up.get(); } |