diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-08 20:05:05 +0100 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-08 20:05:05 +0100 | 
| commit | c4993d76e77ad5c2f5d0e3d5c6961bcfb80a8374 (patch) | |
| tree | 7db2e768eecae6056ac6f2c640db3b0efa149773 | |
| parent | Modern random (diff) | |
| download | netfs-c4993d76e77ad5c2f5d0e3d5c6961bcfb80a8374.tar.bz2 netfs-c4993d76e77ad5c2f5d0e3d5c6961bcfb80a8374.tar.xz netfs-c4993d76e77ad5c2f5d0e3d5c6961bcfb80a8374.zip  | |
Don't std::move trivially copyable, add some const
| -rw-r--r-- | netfs/fuse/fuseDirs.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp index d23f5d7..b03282e 100644 --- a/netfs/fuse/fuseDirs.cpp +++ b/netfs/fuse/fuseDirs.cpp @@ -46,15 +46,15 @@ namespace NetFS {  	{  		try {  			auto od = getProxy<OpenDirPtr>(fi->fh); -			std::string path(p); +			const std::string path(p);  			auto expiry = time(nullptr) + 2;  			if (flags == FUSE_READDIR_PLUS) {  				for (const auto & e : od->remote->listdir()) {  					if (auto stat = converter.convert(e.second); stat.st_mode) {  						filler(buf, e.first.c_str(), nullptr, 0, FUSE_FILL_DIR_PLUS); -						std::string k(path + e.first); +						const std::string k(path + e.first);  						statCache.remove(k); -						statCache.add(k, std::move(stat), expiry); +						statCache.add(k, stat, expiry);  					}  				}  			}  | 
