Instance: use std::unique_ptr<> to manage the NeighborGlue pointer

This commit is contained in:
Max Kellermann
2019-04-25 13:09:31 +02:00
parent 692c8025a2
commit f764925edc
4 changed files with 9 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ struct Instance final
MaskMonitor idle_monitor;
#ifdef ENABLE_NEIGHBOR_PLUGINS
NeighborGlue *neighbors;
std::unique_ptr<NeighborGlue> neighbors;
#endif
#ifdef ENABLE_DATABASE