diff options
Diffstat (limited to 'lldb/source/Utility/StringList.cpp')
-rw-r--r-- | lldb/source/Utility/StringList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/StringList.cpp b/lldb/source/Utility/StringList.cpp index 5e06b6b69fc09..809c5a02acf6b 100644 --- a/lldb/source/Utility/StringList.cpp +++ b/lldb/source/Utility/StringList.cpp @@ -1,4 +1,4 @@ -//===-- StringList.cpp ------------------------------------------*- C++ -*-===// +//===-- StringList.cpp ----------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -199,7 +199,7 @@ std::string StringList::CopyList(const char *item_preamble, strm << item_preamble; strm << GetStringAtIndex(i); } - return strm.GetString(); + return std::string(strm.GetString()); } StringList &StringList::operator<<(const char *str) { |