summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}