const & foreach loop

This commit is contained in:
Kurt Hindenburg
2016-09-04 17:27:12 -04:00
parent 54ecd560b8
commit edcb028d29

View File

@@ -664,7 +664,7 @@ private:
// len holds the length of the string
QString qargs = QString::fromLocal8Bit(args,len);
foreach (QString value, qargs.split('\u0000'))
foreach (const QString& value, qargs.split('\u0000'))
{
if (!value.isEmpty())
{