neighbor/Plugin: std::unique_ptr<NeighborExplorer>

This commit is contained in:
Max Kellermann
2018-01-02 17:00:27 +01:00
parent cd6de3b24e
commit 201210cfe1
5 changed files with 20 additions and 20 deletions

View File

@@ -252,14 +252,14 @@ SmbclientNeighborExplorer::ThreadFunc()
mutex.unlock();
}
static NeighborExplorer *
static std::unique_ptr<NeighborExplorer>
smbclient_neighbor_create(gcc_unused EventLoop &loop,
NeighborListener &listener,
gcc_unused const ConfigBlock &block)
{
SmbclientInit();
return new SmbclientNeighborExplorer(listener);
return std::make_unique<SmbclientNeighborExplorer>(listener);
}
const NeighborPlugin smbclient_neighbor_plugin = {