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/Interpreter/ScriptInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp') diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 0820755..9572176 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -82,7 +82,7 @@ ScriptInterpreter::GetDataExtractorFromSBData(const lldb::SBData &data) const { Status ScriptInterpreter::GetStatusFromSBError(const lldb::SBError &error) const { if (error.m_opaque_up) - return *error.m_opaque_up.get(); + return *error.m_opaque_up; return Status(); } -- cgit v1.1