mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
TablePatternMatcher: Use const StringValPtr& instead of const StringVal*
This commit is contained in:
parent
c426304c27
commit
501b582bc7
5 changed files with 9 additions and 9 deletions
|
@ -1440,7 +1440,7 @@ public:
|
|||
|
||||
void Clear() { matcher.reset(); }
|
||||
|
||||
VectorValPtr Lookup(const StringVal* s);
|
||||
VectorValPtr Lookup(const StringValPtr& s);
|
||||
|
||||
private:
|
||||
void Build();
|
||||
|
@ -1463,7 +1463,7 @@ private:
|
|||
std::vector<ValPtr> matcher_yields;
|
||||
};
|
||||
|
||||
VectorValPtr detail::TablePatternMatcher::Lookup(const StringVal* s) {
|
||||
VectorValPtr detail::TablePatternMatcher::Lookup(const StringValPtr& s) {
|
||||
auto results = make_intrusive<VectorVal>(vtype);
|
||||
|
||||
if ( ! matcher ) {
|
||||
|
@ -2016,7 +2016,7 @@ TableValPtr TableVal::LookupSubnetValues(const SubNetVal* search) {
|
|||
return nt;
|
||||
}
|
||||
|
||||
VectorValPtr TableVal::LookupPattern(const StringVal* s) {
|
||||
VectorValPtr TableVal::LookupPattern(const StringValPtr& s) {
|
||||
if ( ! pattern_matcher )
|
||||
reporter->InternalError("LookupPattern called on wrong table type");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue