mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Don't pass Symbol by reference
Since Symbol is just an integer, passing it by const reference is never advantageous.
This commit is contained in:
parent
29e52194a8
commit
fab731a9d4
4 changed files with 13 additions and 12 deletions
|
@ -392,7 +392,7 @@ public:
|
|||
inline Value * allocValue();
|
||||
inline Env & allocEnv(size_t size);
|
||||
|
||||
Value * allocAttr(Value & vAttrs, const Symbol & name);
|
||||
Value * allocAttr(Value & vAttrs, Symbol name);
|
||||
Value * allocAttr(Value & vAttrs, std::string_view name);
|
||||
|
||||
Bindings * allocBindings(size_t capacity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue