From 8f010be4b16144f4bfecfb8fe282e4654d896db4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 18 Apr 2022 19:17:11 +0100 Subject: Move construct ReqEnv from mapper values --- netfs/fuse/fuseApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp index a206e60..159febf 100644 --- a/netfs/fuse/fuseApp.cpp +++ b/netfs/fuse/fuseApp.cpp @@ -297,6 +297,6 @@ NetFS::ReqEnv NetFS::FuseApp::reqEnv() { struct fuse_context * c = fuse_get_context(); - const auto t = converter.mapper->mapFileSystem(safe {c->uid}, safe {c->gid}); - return {t.username, t.groupname}; + auto t = converter.mapper->mapFileSystem(safe {c->uid}, safe {c->gid}); + return {std::move(t.username), std::move(t.groupname)}; } -- cgit v1.2.3