From bd0cfffe237e6a0926b608dee807942a52c0fe9a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Jan 2014 12:48:44 +0100 Subject: neighbor/Info: add constructor --- src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/neighbor/plugins') diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx index 8dc537e94..f7085c03d 100644 --- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx +++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx @@ -122,12 +122,7 @@ ReadServer(NeighborExplorer::List &list, const smbc_dirent &e) const std::string name(e.name, e.namelen); const std::string comment(e.comment, e.commentlen); - NeighborInfo info{ - "smb://" + name, - name + " (" + comment + ")", - }; - - list.emplace_front(std::move(info)); + list.emplace_front("smb://" + name, name + " (" + comment + ")"); } static void -- cgit v1.2.3