Use string_view for a couple of Dbg methods

This commit is contained in:
Tim Wojtulewicz 2020-02-03 11:35:26 -05:00
parent eda1b4a23e
commit 92afe64525
3 changed files with 5 additions and 5 deletions

View file

@ -119,7 +119,7 @@ void DbgBreakpoint::RemoveFromStmt()
}
bool DbgBreakpoint::SetLocation(ParseLocationRec plr, string loc_str)
bool DbgBreakpoint::SetLocation(ParseLocationRec plr, string_view loc_str)
{
if ( plr.type == plrUnknown )
{
@ -150,7 +150,7 @@ bool DbgBreakpoint::SetLocation(ParseLocationRec plr, string loc_str)
{
kind = BP_FUNC;
function_name = make_full_var_name(current_module.c_str(),
loc_str.c_str());
loc_str.data());
at_stmt = plr.stmt;
const Location* loc = at_stmt->GetLocationInfo();
snprintf(description, sizeof(description), "%s at %s:%d",