diff options
author | Max Kellermann <max@duempel.org> | 2014-01-26 12:48:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-26 13:07:53 +0100 |
commit | bd0cfffe237e6a0926b608dee807942a52c0fe9a (patch) | |
tree | 77eca406d1ed1ec57333e8f1ee7f7c08798982c2 /src/neighbor/plugins | |
parent | 8c5ea7ec557d0ffdbd6fb96ea4e76d6ce177ac1b (diff) | |
download | mpd-bd0cfffe237e6a0926b608dee807942a52c0fe9a.tar.gz mpd-bd0cfffe237e6a0926b608dee807942a52c0fe9a.tar.xz mpd-bd0cfffe237e6a0926b608dee807942a52c0fe9a.zip |
neighbor/Info: add constructor
Diffstat (limited to 'src/neighbor/plugins')
-rw-r--r-- | src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
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 |