[API] Remove redundant member initialization (NFC)

Identified with readability-redundant-member-init.
This commit is contained in:
Kazu Hirata
2022-01-02 22:44:15 -08:00
parent 1461bd13c9
commit a3436f7340
44 changed files with 78 additions and 124 deletions

View File

@@ -14,17 +14,14 @@
using namespace lldb;
using namespace lldb_private;
SBStringList::SBStringList() : m_opaque_up() {
LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBStringList);
}
SBStringList::SBStringList() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBStringList); }
SBStringList::SBStringList(const lldb_private::StringList *lldb_strings_ptr)
: m_opaque_up() {
SBStringList::SBStringList(const lldb_private::StringList *lldb_strings_ptr) {
if (lldb_strings_ptr)
m_opaque_up = std::make_unique<StringList>(*lldb_strings_ptr);
}
SBStringList::SBStringList(const SBStringList &rhs) : m_opaque_up() {
SBStringList::SBStringList(const SBStringList &rhs) {
LLDB_RECORD_CONSTRUCTOR(SBStringList, (const lldb::SBStringList &), rhs);
m_opaque_up = clone(rhs.m_opaque_up);