On 2015-12-22 09:50, Marc Mutz wrote:
>     foreach(const QString &s : someLongExpression()->fooBar().names())
> 
>     const auto strings = someLongExpression()->fooBar().names();
>     for (const QString &s : strings)

On that note, is there any case in which Q_FOREACH is superior to a
range-based for? (Besides the obvious one where the original list is
modified from within the loop?)

-- 
Matthew

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to