summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-11-24 17:45:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-11-24 17:45:44 +0000
commit5550e81e68ec4d2301082a0869f17cd10592e658 (patch)
tree093c08dc46829130439488eb9da320ab61b60473
parentSimplify directory interface (diff)
downloadnetfs-5550e81e68ec4d2301082a0869f17cd10592e658.tar.bz2
netfs-5550e81e68ec4d2301082a0869f17cd10592e658.tar.xz
netfs-5550e81e68ec4d2301082a0869f17cd10592e658.zip
Fixes for tidy
-rw-r--r--netfs/fuse/fuseApp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp
index 1f628fa..21bff3d 100644
--- a/netfs/fuse/fuseApp.cpp
+++ b/netfs/fuse/fuseApp.cpp
@@ -100,7 +100,7 @@ NetFS::FuseApp::configureFromUri(const std::string & uriString) const
auto r = std::make_shared<NetFS::Client::Resource>();
r->ExportName = uri.path->string();
- r->Endpoints.push_back(IceEndpointFmt::get(uri.scheme, uri.host, uri.port ? *uri.port : 4000));
+ r->Endpoints.emplace_back(IceEndpointFmt::get(uri.scheme, uri.host, uri.port ? *uri.port : 4000));
if (uri.password) {
r->AuthToken = *uri.password;
}
@@ -112,7 +112,7 @@ NetFS::FuseApp::opt_parse(void * data, const char * arg, int, struct fuse_args *
{
auto & iceArgs = *static_cast<Ice::StringSeq *>(data);
if (strncmp(arg, "--Ice.", 6) == 0) {
- iceArgs.push_back(arg);
+ iceArgs.emplace_back(arg);
return 0;
}
else if (strncmp(arg, "_netdev", 7) == 0) {
@@ -122,7 +122,7 @@ NetFS::FuseApp::opt_parse(void * data, const char * arg, int, struct fuse_args *
return 1;
}
else if (iceArgs.empty() || strncmp(iceArgs.front().c_str(), "--Ice.", 6) == 0) {
- iceArgs.insert(iceArgs.begin(), arg);
+ iceArgs.emplace(iceArgs.begin(), arg);
return 0;
}
return 1;