mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
isolate Location specifics to private class variables to enforce correct line number ordering
This commit is contained in:
parent
eb6b4a0c46
commit
5c63133226
30 changed files with 172 additions and 136 deletions
|
@ -109,7 +109,7 @@ Trigger::Trigger(std::shared_ptr<WhenInfo> wi, const IDSet& _globals, std::vecto
|
|||
attached = nullptr;
|
||||
|
||||
if ( loc )
|
||||
name = util::fmt("%s:%d-%d", loc->filename, loc->first_line, loc->last_line);
|
||||
name = util::fmt("%s:%d-%d", loc->FileName(), loc->FirstLine(), loc->LastLine());
|
||||
else
|
||||
name = "<no-trigger-location>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue