mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Use string_view for a couple of Dbg methods
This commit is contained in:
parent
eda1b4a23e
commit
92afe64525
3 changed files with 5 additions and 5 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue