diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-24 17:44:33 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-24 17:48:40 -0700 |
commit | 06412dae82376c12bc64b944e6d21141313b5cf1 (patch) | |
tree | b4faf7b10efcd010beaf21bd0ffaa3f958bd37a5 /lldb/source/Interpreter/ScriptInterpreter.cpp | |
parent | b5c24c24a473d7e0f3ae04101c54c08cbdc8d190 (diff) | |
download | llvm-06412dae82376c12bc64b944e6d21141313b5cf1.zip llvm-06412dae82376c12bc64b944e6d21141313b5cf1.tar.gz llvm-06412dae82376c12bc64b944e6d21141313b5cf1.tar.bz2 |
[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.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 5013d99..2dda1bb 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -102,6 +102,5 @@ Status ScriptInterpreter::SetBreakpointCommandCallbackFunction( std::unique_ptr<ScriptInterpreterLocker> ScriptInterpreter::AcquireInterpreterLock() { - return std::unique_ptr<ScriptInterpreterLocker>( - new ScriptInterpreterLocker()); + return std::make_unique<ScriptInterpreterLocker>(); } |