summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/lib/baseMapper.cpp2
-rw-r--r--netfs/lib/baseMapper.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/netfs/lib/baseMapper.cpp b/netfs/lib/baseMapper.cpp
index c3518e4..4c2b3f0 100644
--- a/netfs/lib/baseMapper.cpp
+++ b/netfs/lib/baseMapper.cpp
@@ -4,7 +4,7 @@
namespace NetFS::Mapping {
BaseMapper::BaseMapper() : BaseMapper(std::make_shared<UserEntCache>()) { }
- BaseMapper::BaseMapper(EntryResolverPtr<User> u) : BaseMapper(std::move(u), std::make_shared<GroupEntCache>(u)) { }
+ BaseMapper::BaseMapper(const EntryResolverPtr<User> & u) : BaseMapper(u, std::make_shared<GroupEntCache>(u)) { }
BaseMapper::BaseMapper(EntryResolverPtr<User> u, EntryResolverPtr<Group> g) :
users(std::move(u)), groups(std::move(g))
diff --git a/netfs/lib/baseMapper.h b/netfs/lib/baseMapper.h
index c3bd46e..89adf5f 100644
--- a/netfs/lib/baseMapper.h
+++ b/netfs/lib/baseMapper.h
@@ -10,7 +10,7 @@ namespace NetFS {
class BaseMapper {
public:
BaseMapper();
- BaseMapper(EntryResolverPtr<User> users);
+ BaseMapper(const EntryResolverPtr<User> & users);
BaseMapper(EntryResolverPtr<User> users, EntryResolverPtr<Group> groups);
protected: