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

@@ -38,11 +38,11 @@ namespace BlackMisc
this->m_splitParts = m_cleanedLine.split(' ');
if (!this->m_splitParts.isEmpty())
{
const QString first = this->m_splitParts.first();
const QString &first = this->m_splitParts.constFirst();
const QString formatted = formatCommand(first);
if (isCommand(first))
{
this->m_commandPart = formatCommand(first);
this->m_commandPart = formatted;
this->m_knownCommand = this->m_knownCommands.contains(formatted);
}
}