From 1a09003a6e8fc5ae3b1e4b01ae8432b0ed3ca7bd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 16 Jan 2014 09:03:41 +0100 Subject: db/upnp: move the UPnPDeviceDirectory instance to class UpnpDatabase Delete the object when closing the database. --- src/db/upnp/Discovery.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/db/upnp/Discovery.hxx') diff --git a/src/db/upnp/Discovery.hxx b/src/db/upnp/Discovery.hxx index 899ac83ab..ddc7d2909 100644 --- a/src/db/upnp/Discovery.hxx +++ b/src/db/upnp/Discovery.hxx @@ -46,14 +46,12 @@ class UPnPDeviceDirectory { time_t m_lastSearch; - UPnPDeviceDirectory(); public: + UPnPDeviceDirectory(); + UPnPDeviceDirectory(const UPnPDeviceDirectory &) = delete; UPnPDeviceDirectory& operator=(const UPnPDeviceDirectory &) = delete; - /** This class is a singleton. Get the instance here */ - static UPnPDeviceDirectory *getTheDir(); - /** Retrieve the directory services currently seen on the network */ bool getDirServices(std::vector &); -- cgit v1.2.3