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/Plugins/Process/scripted/ScriptedProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp') diff --git a/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp b/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp index e31d8bb..da4f3d6 100644 --- a/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp +++ b/lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp @@ -104,7 +104,7 @@ ScriptedProcess::ScriptedProcess( ExecutionContext exe_ctx(target_sp, /*get_process=*/false); StructuredData::GenericSP object_sp = GetInterface().CreatePluginObject( - m_scripted_process_info.GetClassName().c_str(), exe_ctx, + m_scripted_process_info.GetClassName(), exe_ctx, m_scripted_process_info.GetArgsSP()); if (!object_sp || !object_sp->IsValid()) { -- cgit v1.1