mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
No point in passing string_views by reference
This commit is contained in:
parent
5ef88457b8
commit
402ee8ab64
5 changed files with 24 additions and 24 deletions
|
|
@ -552,7 +552,7 @@ struct CompareValues
|
|||
return (*this)(v1, v2, errorCtx);
|
||||
}
|
||||
|
||||
bool operator () (Value * v1, Value * v2, const std::string_view & errorCtx) const
|
||||
bool operator () (Value * v1, Value * v2, std::string_view errorCtx) const
|
||||
{
|
||||
try {
|
||||
if (v1->type() == nFloat && v2->type() == nInt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue