Skip to content
Snippets Groups Projects
Commit f692ee91 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #8968: Pass function parameter 'item' by const reference.

parent ea41a541
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ ConfigTree::getSections() const
* If the section doesn't exists, create it
*/
void
ConfigTree::addConfigTreeItem(const std::string& section, const ConfigTreeItem item)
ConfigTree::addConfigTreeItem(const std::string& section, const ConfigTreeItem &item)
{
// if we doesn't find the item, create it
SectionMap::iterator iter = sections_.find(section);
......
......@@ -106,7 +106,7 @@ class ConfigTree {
*/
std::list<std::string> getSections() const;
void addConfigTreeItem(const std::string& section, const ConfigTreeItem item);
void addConfigTreeItem(const std::string& section, const ConfigTreeItem &item);
/**
* Set a configuration value.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment