A little code cleanup to not create an script bridging object just to feed

the private object back to another internal function.

llvm-svn: 107118
This commit is contained in:
Greg Clayton
2010-06-29 01:42:03 +00:00
parent 90db61d638
commit d0c8a0f031

View File

@@ -110,11 +110,8 @@ SBTarget::CreateProcess ()
SBProcess sb_process;
if (m_opaque_sp)
{
SBListener sb_listener (m_opaque_sp->GetDebugger().GetListener());
if (sb_listener.IsValid())
sb_process.SetProcess (m_opaque_sp->CreateProcess (*sb_listener));
}
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
return sb_process;
}