Skip to content
Snippets Groups Projects
user avatar
Anselmo L. S. Melo authored
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>
7d47b470
History