diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 21:41:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 21:41:05 +0100 |
commit | 0defd927f3a483de56e0d768345bce9e7266be24 (patch) | |
tree | 91da91dcc658d8b6e42c01464216c65925603a5b /src/db/upnp/Util.cxx | |
parent | 6c41e8f63f6ef0eab548d49b75eb18e465009a17 (diff) | |
download | mpd-0defd927f3a483de56e0d768345bce9e7266be24.tar.gz mpd-0defd927f3a483de56e0d768345bce9e7266be24.tar.xz mpd-0defd927f3a483de56e0d768345bce9e7266be24.zip |
db/upnp: use std::list instead of std::set for SearchCapabilities
Reduce bloat. We never used the set lookup.
Diffstat (limited to '')
-rw-r--r-- | src/db/upnp/Util.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/db/upnp/Util.cxx b/src/db/upnp/Util.cxx index df731f94d..fba63983d 100644 --- a/src/db/upnp/Util.cxx +++ b/src/db/upnp/Util.cxx @@ -153,7 +153,7 @@ csvToStrings(const char *s, T &tokens) case ',': switch(state) { case TOKEN: - tokens.insert(tokens.end(), current); + tokens.push_back(current); current.clear(); continue; case ESCAPE: @@ -187,7 +187,7 @@ csvToStrings(const char *s, T &tokens) } switch(state) { case TOKEN: - tokens.insert(tokens.end(), current); + tokens.push_back(current); break; case ESCAPE: return false; @@ -195,6 +195,4 @@ csvToStrings(const char *s, T &tokens) return true; } -//template bool csvToStrings<list<string> >(const string &, list<string> &); -template bool csvToStrings<std::vector<std::string> >(const char *, std::vector<std::string> &); -template bool csvToStrings<std::set<std::string> >(const char *, std::set<std::string> &); +template bool csvToStrings<std::list<std::string>>(const char *, std::list<std::string> &); |