mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Remove unnecessary "const" from return type.
This commit is contained in:
parent
c42b5eddd4
commit
eb7c2e4341
@ -79,7 +79,7 @@ namespace Net
|
|||||||
/// Returns the value of the first name-value pair with the given name.
|
/// 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.
|
/// 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 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.
|
/// Returns an empty vector if there are no name-value pairs with the given name.
|
||||||
|
@ -102,7 +102,7 @@ const std::string& NameValueCollection::get(const std::string& name, const std::
|
|||||||
return defaultValue;
|
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;
|
std::vector<std::string> values;
|
||||||
for (ConstIterator it = _map.find(name); it != _map.end(); it++)
|
for (ConstIterator it = _map.find(name); it != _map.end(); it++)
|
||||||
|
Loading…
Reference in New Issue
Block a user