aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-inline.hh
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-04-28 13:02:39 +0200
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-04-28 13:02:39 +0200
commit402ee8ab64f9b11989cbdcf53f8ca513cb25e23f (patch)
tree1635e7fa11f516ee05ec6d6f90b937f837fa9778 /src/libexpr/eval-inline.hh
parent5ef88457b8bdef957fcbb3cd0e7740595fad1949 (diff)
No point in passing string_views by reference
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r--src/libexpr/eval-inline.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh
index 77ed07b2e..025459c00 100644
--- a/src/libexpr/eval-inline.hh
+++ b/src/libexpr/eval-inline.hh
@@ -128,7 +128,7 @@ void EvalState::forceValue(Value & v, Callable getPos)
[[gnu::always_inline]]
-inline void EvalState::forceAttrs(Value & v, const Pos & pos, const std::string_view & errorCtx)
+inline void EvalState::forceAttrs(Value & v, const Pos & pos, std::string_view errorCtx)
{
forceAttrs(v, [&]() { return pos; }, errorCtx);
}
@@ -136,7 +136,7 @@ inline void EvalState::forceAttrs(Value & v, const Pos & pos, const std::string_
template <typename Callable>
[[gnu::always_inline]]
-inline void EvalState::forceAttrs(Value & v, Callable getPos, const std::string_view & errorCtx)
+inline void EvalState::forceAttrs(Value & v, Callable getPos, std::string_view errorCtx)
{
try {
forceValue(v, noPos);
@@ -152,7 +152,7 @@ inline void EvalState::forceAttrs(Value & v, Callable getPos, const std::string_
[[gnu::always_inline]]
-inline void EvalState::forceList(Value & v, const Pos & pos, const std::string_view & errorCtx)
+inline void EvalState::forceList(Value & v, const Pos & pos, std::string_view errorCtx)
{
try {
forceValue(v, noPos);