Commit 4e60ab7f authored by Max Kellermann's avatar Max Kellermann

lib/upnp/Discovery: use C++11 initializers

parent 71e7d32b
...@@ -230,8 +230,7 @@ UPnPDeviceDirectory::UPnPDeviceDirectory(UpnpClient_Handle _handle, ...@@ -230,8 +230,7 @@ UPnPDeviceDirectory::UPnPDeviceDirectory(UpnpClient_Handle _handle,
UPnPDiscoveryListener *_listener) UPnPDiscoveryListener *_listener)
:handle(_handle), :handle(_handle),
listener(_listener), listener(_listener),
queue("DiscoveredQueue"), queue("DiscoveredQueue")
search_timeout(2), last_search(0)
{ {
} }
......
...@@ -103,12 +103,12 @@ class UPnPDeviceDirectory final : UpnpCallback { ...@@ -103,12 +103,12 @@ class UPnPDeviceDirectory final : UpnpCallback {
* called delay because it's the base of a random delay that * called delay because it's the base of a random delay that
* the devices apply to avoid responding all at the same time. * the devices apply to avoid responding all at the same time.
*/ */
int search_timeout; int search_timeout = 2;
/** /**
* The MonotonicClockS() time stamp of the last search. * The MonotonicClockS() time stamp of the last search.
*/ */
unsigned last_search; unsigned last_search = 0;
public: public:
UPnPDeviceDirectory(UpnpClient_Handle _handle, UPnPDeviceDirectory(UpnpClient_Handle _handle,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment