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