mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #937 Resolved clazy warnings: unnecessary memory allocation.
This commit is contained in:
@@ -138,7 +138,7 @@ namespace BlackMisc
|
||||
}
|
||||
else
|
||||
{
|
||||
f = this->m_indexString.left(p).toInt(&ok);
|
||||
f = this->m_indexString.leftRef(p).toInt(&ok);
|
||||
}
|
||||
Q_ASSERT_X(ok && f >= 0, Q_FUNC_INFO, "Invalid index");
|
||||
return f;
|
||||
|
||||
Reference in New Issue
Block a user