mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Use const ref to avoid copies
This commit is contained in:
@@ -194,7 +194,7 @@ namespace BlackMisc
|
||||
qint64 CArtifactList::getTotalFileSize() const
|
||||
{
|
||||
qint64 s = 0;
|
||||
for (const CArtifact a : *this)
|
||||
for (const CArtifact &a : *this)
|
||||
{
|
||||
s += a.getFileSize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user