From efbffb737169a5ff464a97c77119029d226b4160 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Feb 2019 21:43:14 +0000 Subject: Emplace some things --- netfs/daemon/daemonDirectory.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3