mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Use const ref to avoid copies
This commit is contained in:
@@ -166,7 +166,7 @@ namespace BlackMisc
|
||||
|
||||
int uc = 0;
|
||||
int lc = 0;
|
||||
for (const QChar ch : realName)
|
||||
for (const QChar &ch : realName)
|
||||
{
|
||||
// Joe Doe -> valid
|
||||
// jOE dOE -> invalid
|
||||
|
||||
Reference in New Issue
Block a user