Remove unnecessary "const" from return type.

This commit is contained in:
Vitaly Baranov 2024-07-05 21:42:54 +02:00
parent c42b5eddd4
commit eb7c2e4341
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ namespace Net
/// Returns the value of the first name-value pair with the given name.
/// If no value with the given name has been found, the defaultValue is returned.
const std::vector<std::string> getAll(const std::string & name) const;
std::vector<std::string> getAll(const std::string & name) const;
/// Returns all values of all name-value pairs with the given name.
///
/// Returns an empty vector if there are no name-value pairs with the given name.

View File

@ -102,7 +102,7 @@ const std::string& NameValueCollection::get(const std::string& name, const std::
return defaultValue;
}
const std::vector<std::string> NameValueCollection::getAll(const std::string& name) const
std::vector<std::string> NameValueCollection::getAll(const std::string& name) const
{
std::vector<std::string> values;
for (ConstIterator it = _map.find(name); it != _map.end(); it++)