mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
makeRegexCache(): Return a ref
This commit is contained in:
parent
1f6ac88efc
commit
fdc5600fa7
2 changed files with 5 additions and 4 deletions
|
|
@ -4611,9 +4611,9 @@ struct RegexCache
|
|||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<RegexCache> makeRegexCache()
|
||||
ref<RegexCache> makeRegexCache()
|
||||
{
|
||||
return std::make_shared<RegexCache>();
|
||||
return make_ref<RegexCache>();
|
||||
}
|
||||
|
||||
void prim_match(EvalState & state, const PosIdx pos, Value ** args, Value & v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue