mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user