From 70355ace3f075553043f6715390891633afc604e Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 12 Feb 2019 03:47:39 +0000 Subject: Remove redundant ::get() for smart pointer. (NFC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit removes redundant calls to smart pointer’s ::get() method. https://clang.llvm.org/extra/clang-tidy/checks/readability-redundant-smartptr-get.html llvm-svn: 353795 --- lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp') diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index f95dc23c3d8..b2955902967 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -233,7 +233,7 @@ Status ProcessKDP::DoConnectRemote(Stream *strm, llvm::StringRef remote_url) { std::unique_ptr conn_ap( new ConnectionFileDescriptor()); - if (conn_ap.get()) { + if (conn_ap) { // Only try once for now. // TODO: check if we should be retrying? const uint32_t max_retry_count = 1; -- cgit v1.2.3