diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /source/Target/SystemRuntime.cpp | |
parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) | |
download | src-f3fbd1c0586ff6ec7895991e6c28f61a503c36a8.tar.gz src-f3fbd1c0586ff6ec7895991e6c28f61a503c36a8.zip |
Vendor import of lldb release_39 branch r276489:vendor/lldb/lldb-release_39-r276489
Notes
Notes:
svn path=/vendor/lldb/dist/; revision=303241
svn path=/vendor/lldb/lldb-release_39-r276489/; revision=303242; tag=vendor/lldb/lldb-release_39-r276489
Diffstat (limited to 'source/Target/SystemRuntime.cpp')
-rw-r--r-- | source/Target/SystemRuntime.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/source/Target/SystemRuntime.cpp b/source/Target/SystemRuntime.cpp index c3fb9c8091fd..522b535039ff 100644 --- a/source/Target/SystemRuntime.cpp +++ b/source/Target/SystemRuntime.cpp @@ -7,6 +7,10 @@ // //===----------------------------------------------------------------------===// +// C Includes +// C++ Includes +// Other libraries and framework includes +// Project includes #include "lldb/lldb-private.h" #include "lldb/Target/SystemRuntime.h" #include "lldb/Target/Process.h" @@ -18,17 +22,16 @@ using namespace lldb_private; SystemRuntime* SystemRuntime::FindPlugin (Process *process) { - SystemRuntimeCreateInstance create_callback = NULL; - for (uint32_t idx = 0; (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(idx)) != NULL; ++idx) + SystemRuntimeCreateInstance create_callback = nullptr; + for (uint32_t idx = 0; (create_callback = PluginManager::GetSystemRuntimeCreateCallbackAtIndex(idx)) != nullptr; ++idx) { std::unique_ptr<SystemRuntime> instance_ap(create_callback(process)); - if (instance_ap.get()) + if (instance_ap) return instance_ap.release(); } - return NULL; + return nullptr; } - //---------------------------------------------------------------------- // SystemRuntime constructor //---------------------------------------------------------------------- @@ -38,12 +41,7 @@ SystemRuntime::SystemRuntime(Process *process) : { } -//---------------------------------------------------------------------- -// Destructor -//---------------------------------------------------------------------- -SystemRuntime::~SystemRuntime() -{ -} +SystemRuntime::~SystemRuntime() = default; void SystemRuntime::DidAttach () |