mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08:00
[lldb] Use std::make_unique<> (NFC)
Update the rest of lldb to use std::make_unique<>. I used clang-tidy to automate this, which probably missed cases that are wrapped in ifdefs.
This commit is contained in:
@@ -169,7 +169,7 @@ ModuleLock::ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid,
|
||||
return;
|
||||
}
|
||||
|
||||
m_lock.reset(new lldb_private::LockFile(m_file_up->GetDescriptor()));
|
||||
m_lock = std::make_unique<lldb_private::LockFile>(m_file_up->GetDescriptor());
|
||||
error = m_lock->WriteLock(0, 1);
|
||||
if (error.Fail())
|
||||
error.SetErrorStringWithFormat("Failed to lock file: %s",
|
||||
|
||||
Reference in New Issue
Block a user