BluezObjectManager: Mark the destructor as virtual

This commit is contained in:
Vibhav Pant
2023-09-13 14:23:11 +05:30
parent 4bdc46e257
commit 0231dc656a
@@ -67,14 +67,14 @@ class BluezObjectManager
: ProxyInterfaces(system_bus, "org.bluez", "/") {
registerProxy();
}
~BluezObjectManager() { unregisterProxy(); }
virtual ~BluezObjectManager() { unregisterProxy(); }
protected:
void onInterfacesAdded(
void onInterfacesAdded(
const sdbus::ObjectPath &objectPath,
const std::map<std::string, std::map<std::string, sdbus::Variant>>
&interfacesAndProperties) override {}
void onInterfacesRemoved(
void onInterfacesRemoved(
const sdbus::ObjectPath &objectPath,
const std::vector<std::string> &interfaces) override {}
};