[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.
This commit is contained in:
@@ -148,7 +148,7 @@ const lldb_private::Declaration *SBDeclaration::operator->() const {
|
||||
|
||||
lldb_private::Declaration &SBDeclaration::ref() {
|
||||
if (m_opaque_up == nullptr)
|
||||
m_opaque_up.reset(new lldb_private::Declaration());
|
||||
m_opaque_up = std::make_unique<lldb_private::Declaration>();
|
||||
return *m_opaque_up;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user