refs #937 Resolved clazy warnings: unnecessary detaching of containers.

This commit is contained in:
Mathew Sutcliffe
2017-04-15 01:19:26 +01:00
parent ce1730b453
commit fce1513dae
25 changed files with 108 additions and 63 deletions

View File

@@ -134,8 +134,8 @@ namespace BlackSample
stream >> cmd;
stream.skipWhiteSpace();
auto found = m_commands.find(cmd);
if (found == m_commands.end())
auto found = m_commands.constFind(cmd);
if (found == m_commands.constEnd())
{
std::cout << "No such command" << std::endl;
}