[Development] QStringLiteral vs QLatin1String , foreach vs for range
andre at familiesomers.nl
Wed Jan 20 08:37:45 CET 2016
Op 20/01/2016 om 08:18 schreef Knoll Lars:
>> Where is this qAsConst coming from? When was it introduced? Where is it
>> I can't find it in my Qt documentation.
> It just got added some weeks ago, after we realised that range-for would lead to our containers detaching. So it'll be in 5.7.
> In general, I'm very much in favour of getting rid of foreach in favour of range-for.
Perhaps in the meantime the foreach macro could just be changed to
actually expand to a range-for?
More information about the Development