diff --git a/lldb/include/lldb/API/SBStringList.h b/lldb/include/lldb/API/SBStringList.h index 29d266f97458..24be39cd1203 100644 --- a/lldb/include/lldb/API/SBStringList.h +++ b/lldb/include/lldb/API/SBStringList.h @@ -36,7 +36,7 @@ public: AppendList (const char **strv, int strc); void - AppendList (lldb::SBStringList strings); + AppendList (const lldb::SBStringList &strings); uint32_t GetSize () const; @@ -47,8 +47,6 @@ public: void Clear (); -protected: - #ifndef SWIG const lldb_private::StringList * diff --git a/lldb/source/API/SBStringList.cpp b/lldb/source/API/SBStringList.cpp index f15200061f62..beb760632faf 100644 --- a/lldb/source/API/SBStringList.cpp +++ b/lldb/source/API/SBStringList.cpp @@ -94,7 +94,7 @@ SBStringList::AppendList (const char **strv, int strc) } void -SBStringList::AppendList (SBStringList strings) +SBStringList::AppendList (const SBStringList &strings) { if (strings.IsValid()) {