Skip to content
Commit 7d47b470 authored by Anselmo L. S. Melo's avatar Anselmo L. S. Melo
Browse files

Review iterations over QStrings

There are many ways of iterating over lists in C++/Qt.
In the specific case of QStrings, it is known [1] that using
foreach with const references avoids the creation of new
QString objects in each iteration, reducing the time consumed
by the loops.

[1] https://blog.qt.io/blog/2009/01/23/iterating-efficiently/



Signed-off-by: default avatarAnselmo L. S. Melo <anselmo.melo@intel.com>
parent a4e6fd28
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment