about summary refs log tree commit diff
path: root/third_party/nix/src/nix/cat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/cat.cc')
-rw-r--r--third_party/nix/src/nix/cat.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/cat.cc b/third_party/nix/src/nix/cat.cc
index 9b2da929ac..2d662a453f 100644
--- a/third_party/nix/src/nix/cat.cc
+++ b/third_party/nix/src/nix/cat.cc
@@ -8,7 +8,7 @@ using namespace nix;
 struct MixCat : virtual Args {
   std::string path;
 
-  void cat(ref<FSAccessor> accessor) {
+  void cat(const ref<FSAccessor>& accessor) {
     auto st = accessor->stat(path);
     if (st.type == FSAccessor::Type::tMissing) {
       throw Error(format("path '%1%' does not exist") % path);