Skip to content
Snippets Groups Projects
Commit 2e7d782b authored by Oliver Sander's avatar Oliver Sander
Browse files

pass default string by const reference instead of by value

[[Imported from SVN: r4982]]
parent 52a26511
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ string& ConfigParser::operator[] (const string& key)
}
}
string ConfigParser::get(const string& key, string defaultValue)
string ConfigParser::get(const string& key, const string& defaultValue)
{
if (hasKey(key))
return (*this)[key];
......
......@@ -145,7 +145,7 @@ namespace Dune {
* \param defaultValue default if key does not exist
* \return value as string
*/
std::string get(const std::string& key, std::string defaultValue);
std::string get(const std::string& key, const std::string& defaultValue);
/** \brief get value as int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment