mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
added ListMap
ListMap is a map that does not order elements; used in NameValueCollection to prevent reordering of message headers
This commit is contained in:
@@ -94,13 +94,13 @@ void NameValueCollection::set(const std::string& name, const std::string& value)
|
||||
if (it != _map.end())
|
||||
it->second = value;
|
||||
else
|
||||
_map.insert(HeaderMap::value_type(name, value));
|
||||
_map.insert(HeaderMap::ValueType(name, value));
|
||||
}
|
||||
|
||||
|
||||
void NameValueCollection::add(const std::string& name, const std::string& value)
|
||||
{
|
||||
_map.insert(HeaderMap::value_type(name, value));
|
||||
_map.insert(HeaderMap::ValueType(name, value));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user