fixup! Use string_view for a couple of Dbg methods

This commit is contained in:
Tim Wojtulewicz 2020-02-11 11:14:55 -08:00
parent da7749fc43
commit d69d0da62e
2 changed files with 3 additions and 2 deletions

View file

@ -148,9 +148,10 @@ bool DbgBreakpoint::SetLocation(ParseLocationRec plr, string_view loc_str)
else if ( plr.type == plrFunction )
{
std::string loc_s(loc_str);
kind = BP_FUNC;
function_name = make_full_var_name(current_module.c_str(),
loc_str.data());
loc_s.c_str());
at_stmt = plr.stmt;
const Location* loc = at_stmt->GetLocationInfo();
snprintf(description, sizeof(description), "%s at %s:%d",

View file

@ -27,7 +27,7 @@
//
// Helper routines
//
bool string_is_regex(string_view s)
bool string_is_regex(const string& s)
{
return strpbrk(s.data(), "?*\\+");
}