summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBProcessInfo.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-06-24 16:25:05 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-06-24 16:29:30 -0700
commit1c0bbe4341ac0ffbaf2e1f482239b45166607f2d (patch)
treeb379f3b8e3cdbfc7d5e9af6294ed79e16ae6723c /lldb/source/API/SBProcessInfo.cpp
parent6330653547f492646c92553738dab6a99d7d9710 (diff)
[lldb/API] Use std::make_unique<> (NFC)
I was holding off on this change until we moved to C++14 as to not have to convert llvm::make_unique to std::make_unique. That happened a while ago so here's the first patch for the API which had a bunch of raw `new`s.
Diffstat (limited to 'lldb/source/API/SBProcessInfo.cpp')
-rw-r--r--lldb/source/API/SBProcessInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBProcessInfo.cpp b/lldb/source/API/SBProcessInfo.cpp
index aa97b5af4d20..29a9c7b24b5a 100644
--- a/lldb/source/API/SBProcessInfo.cpp
+++ b/lldb/source/API/SBProcessInfo.cpp
@@ -39,7 +39,7 @@ SBProcessInfo &SBProcessInfo::operator=(const SBProcessInfo &rhs) {
ProcessInstanceInfo &SBProcessInfo::ref() {
if (m_opaque_up == nullptr) {
- m_opaque_up.reset(new ProcessInstanceInfo());
+ m_opaque_up = std::make_unique<ProcessInstanceInfo>();
}
return *m_opaque_up;
}