Mamoru TASAKA wrote on 2019/02/27 2:29:
Richard Shaw wrote on 2019/02/27 2:23:
On Tue, Feb 26, 2019 at 11:17 AM Mamoru TASAKA <mtas...@fedoraproject.org>
wrote:

So... I guess Qt "foreach" behavior changed with gcc9..


Is there any chance this will change or magically get fixed if qt is
rebuilt with gcc 9?

Thanks,
Richard


Well, foreach or Q_FOREACH is just a "#define" macro (from 
/usr/include/Qt/qglobal.h and
/usr/include/QtCore/qglobal.h), so rebuilding qt(4) itself does not sense.


So now I tried to change all "foreach(... , ...)" usage with "for(... : ...)",
actually it seems okay??

https://koji.fedoraproject.org/koji/taskinfo?taskID=33067948

What I did is:

LANG=C grep -rl 'foreach.*,' . | \
        xargs sed -i -e '\@foreach.*,@s|foreach\(.*\),|for\1:|'

So now I appreciate it if someone would investigate Q_FOREACH macro.

Regards,
Mamoru

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to