diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-04-26 13:23:32 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-04-26 13:25:17 +0200 |
commit | fab731a9d4622b1ecd7dea01895d9fbaf83301ea (patch) | |
tree | d89fbd645c8961a5bd079eef2cc1e54c84784cd2 /src/libexpr/eval.hh | |
parent | 29e52194a8492d9eea8f7425ea0a2660cfdb6aef (diff) |
Don't pass Symbol by reference
Since Symbol is just an integer, passing it by const reference is
never advantageous.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 5990b97b6..6c418f2ae 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -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); |