aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value.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/value.hh
parent5ef88457b8bdef957fcbb3cd0e7740595fad1949 (diff)
No point in passing string_views by reference
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r--src/libexpr/value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index 403e38258..18e4218c5 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -85,7 +85,7 @@ class ExternalValueBase
/* Coerce the value to a string. Defaults to uncoercable, i.e. throws an
* error.
*/
- virtual std::string coerceToString(const Pos & pos, PathSet & context, bool copyMore, bool copyToStore, const std::string_view & errorCtx) const;
+ virtual std::string coerceToString(const Pos & pos, PathSet & context, bool copyMore, bool copyToStore, std::string_view errorCtx) const;
/* Compare to another value of the same type. Defaults to uncomparable,
* i.e. always false.