Added copy constructors and assignment operators to all lldb::SB* classes
so we don't end up with weak exports with some compilers. llvm-svn: 118312
This commit is contained in:
@@ -34,21 +34,23 @@ SBStringList::SBStringList (const SBStringList &rhs) :
|
||||
}
|
||||
|
||||
|
||||
|
||||
SBStringList::~SBStringList ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
const SBStringList &
|
||||
SBStringList::operator = (const SBStringList &rhs)
|
||||
{
|
||||
if (rhs.IsValid())
|
||||
m_opaque_ap.reset (new lldb_private::StringList(*rhs));
|
||||
|
||||
if (this != &rhs)
|
||||
{
|
||||
if (rhs.IsValid())
|
||||
m_opaque_ap.reset(new lldb_private::StringList(*rhs));
|
||||
else
|
||||
m_opaque_ap.reset();
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
SBStringList::~SBStringList ()
|
||||
{
|
||||
}
|
||||
|
||||
const lldb_private::StringList *
|
||||
SBStringList::operator->() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user