From fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 18 Dec 2022 01:15:25 +0000 Subject: [lldb] Remove redundant .c_str() and .get() calls Removing .c_str() has a semantics difference, but the use scenarios likely do not matter as we don't have NUL in the strings. --- lldb/source/Commands/CommandObjectThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 47ae596..57b5671 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -1710,7 +1710,7 @@ protected: } if (!warnings.empty()) - result.AppendWarning(warnings.c_str()); + result.AppendWarning(warnings); } result.SetStatus(eReturnStatusSuccessFinishResult); -- cgit v1.1