lib/upnp/Device: use std::forward_list instead of std::vector
This commit is contained in:
parent
1fca16737d
commit
feeb21577f
@ -64,7 +64,7 @@ protected:
|
||||
trimstring(*value);
|
||||
value = nullptr;
|
||||
} else if (!strcmp(name, "service")) {
|
||||
m_device.services.emplace_back(std::move(m_tservice));
|
||||
m_device.services.emplace_front(std::move(m_tservice));
|
||||
m_tservice = {};
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <forward_list>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
@ -43,7 +43,7 @@ public:
|
||||
// Model name: e.g. MediaTomb, DNS-327L ("modelName")
|
||||
std::string modelName;
|
||||
// Services provided by this device.
|
||||
std::vector<UPnPService> services;
|
||||
std::forward_list<UPnPService> services;
|
||||
|
||||
/** Build device from xml description downloaded from discovery
|
||||
* @param url where the description came from
|
||||
|
Loading…
Reference in New Issue
Block a user