db/upnp/Discovery: un-inline the destructor

This commit is contained in:
Max Kellermann 2014-01-23 22:33:18 +01:00
parent b521d8564a
commit 3afcfe3330
2 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,11 @@ UPnPDeviceDirectory::UPnPDeviceDirectory(LibUPnP *_lib)
{
}
UPnPDeviceDirectory::~UPnPDeviceDirectory()
{
/* this destructor exists here just so it won't get inlined */
}
bool
UPnPDeviceDirectory::Start(Error &error)
{

View File

@ -102,6 +102,7 @@ class UPnPDeviceDirectory {
public:
UPnPDeviceDirectory(LibUPnP *_lib);
~UPnPDeviceDirectory();
UPnPDeviceDirectory(const UPnPDeviceDirectory &) = delete;
UPnPDeviceDirectory& operator=(const UPnPDeviceDirectory &) = delete;