summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 21:43:14 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 21:43:14 +0000
commitefbffb737169a5ff464a97c77119029d226b4160 (patch)
tree7fe8e2692d31e642910bae19d70667b9e588ffa7
parentSpecialised comparator in EntCache (diff)
downloadnetfs-efbffb737169a5ff464a97c77119029d226b4160.tar.bz2
netfs-efbffb737169a5ff464a97c77119029d226b4160.tar.xz
netfs-efbffb737169a5ff464a97c77119029d226b4160.zip
Emplace some things
-rw-r--r--netfs/daemon/daemonDirectory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/daemon/daemonDirectory.cpp b/netfs/daemon/daemonDirectory.cpp
index 6943982..b03bd1f 100644
--- a/netfs/daemon/daemonDirectory.cpp
+++ b/netfs/daemon/daemonDirectory.cpp
@@ -40,7 +40,7 @@ DirectoryServer::readdir(const Ice::Current&)
throw NetFS::SystemError(errno);
// LCOV_EXCL_STOP
}
- list.push_back(d->d_name);
+ list.emplace_back(d->d_name);
}
return list;
}
@@ -63,7 +63,7 @@ DirectoryServer::listdir(const Ice::Current&)
throw NetFS::SystemError(errno);
// LCOV_EXCL_STOP
}
- list[d->d_name] = convert(s);
+ list.emplace(d->d_name, convert(s));
}
return list;
}