From 5550e81e68ec4d2301082a0869f17cd10592e658 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Nov 2019 17:45:44 +0000 Subject: Fixes for tidy --- netfs/fuse/fuseApp.cpp | 6 +++--- 1 file 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(); 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(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; -- cgit v1.2.3