Use reference instead of copying string in cmdlineparser.cpp

This commit is contained in:
PKEuS 2012-11-03 20:42:32 +01:00
parent c84857fc7e
commit 16a58d1c11
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
std::ostringstream doc;
// Get documentation..
for (std::list<Check *>::iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) {
const std::string name((*it)->name());
const std::string& name((*it)->name());
const std::string info((*it)->classInfo());
if (!name.empty() && !info.empty())
doc << "===" << name << "===\n"