From a3436f7340cb5bdb9dddf2b6b3e72ca6cf9f7e22 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 2 Jan 2022 22:44:15 -0800 Subject: [API] Remove redundant member initialization (NFC) Identified with readability-redundant-member-init. --- lldb/source/API/SBModule.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lldb/source/API/SBModule.cpp') diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index 710ee8551bd6..ed17e8fdc9c3 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -29,13 +29,11 @@ using namespace lldb; using namespace lldb_private; -SBModule::SBModule() : m_opaque_sp() { - LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBModule); -} +SBModule::SBModule() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBModule); } SBModule::SBModule(const lldb::ModuleSP &module_sp) : m_opaque_sp(module_sp) {} -SBModule::SBModule(const SBModuleSpec &module_spec) : m_opaque_sp() { +SBModule::SBModule(const SBModuleSpec &module_spec) { LLDB_RECORD_CONSTRUCTOR(SBModule, (const lldb::SBModuleSpec &), module_spec); ModuleSP module_sp; @@ -49,8 +47,7 @@ SBModule::SBModule(const SBModule &rhs) : m_opaque_sp(rhs.m_opaque_sp) { LLDB_RECORD_CONSTRUCTOR(SBModule, (const lldb::SBModule &), rhs); } -SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr) - : m_opaque_sp() { +SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr) { LLDB_RECORD_CONSTRUCTOR(SBModule, (lldb::SBProcess &, lldb::addr_t), process, header_addr); -- cgit v1.2.3