[i18n] compile without foreach
ClosedPublic

Authored by mlaurent on Mar 5 2019, 6:22 AM.

Details

Summary

compile without foreach

Test Plan

autotest ok

Diff Detail

Repository
R249 KI18n
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mlaurent created this revision.Mar 5 2019, 6:22 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 5 2019, 6:22 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
mlaurent requested review of this revision.Mar 5 2019, 6:22 AM
dfaure accepted this revision.Mar 5 2019, 11:11 AM
This revision is now accepted and ready to land.Mar 5 2019, 11:11 AM
This revision was automatically updated to reflect the committed changes.
sh-zam reopened this revision.Mar 5 2019, 2:51 PM
sh-zam added a subscriber: sh-zam.
sh-zam added inline comments.
CMakeLists.txt
74

Removing this line is doesn't allow build to succeed, I had to comment this line to make it successful.

My build log:


I am using build_kf5.sh to build the framework

This revision is now accepted and ready to land.Mar 5 2019, 2:51 PM
sh-zam added inline comments.Mar 5 2019, 3:03 PM
CMakeLists.txt
74

Sorry for the typo, I can't edit the comment it seems.

I mean to say, having this line is causing the build to fail.

dfaure added a comment.Mar 5 2019, 3:26 PM

I pushed a fix, please test: https://commits.kde.org/ki18n/927fd6c20a7e0acfe87353abb93dcb066d1d0713

Laurent: this was Android-specific code, not compiled on Linux. I suggest grepping for Q_FOREACH/foreach after it compiles.

I pushed a fix, please test: https://commits.kde.org/ki18n/927fd6c20a7e0acfe87353abb93dcb066d1d0713

Laurent: this was Android-specific code, not compiled on Linux. I suggest grepping for Q_FOREACH/foreach after it compiles.

Hi. By pure chance I saw that commit bypassing, but am wondering: QString::replace() is a non-const method with all of the overloads, am I missing something?

Ah, seems I missed this was Android-specific code, and CI confirms what I had been thinking before, by failing the build for Android. Okay, nothing missed here on my side it seems, so moving out again :)

dfaure added a comment.Mar 5 2019, 5:30 PM

Well, you could have pushed a fix ;-)
Done now.

sh-zam added a comment.Mar 5 2019, 5:35 PM

The latest commit is working now. Thanks for helping

Well, you could have pushed a fix ;-)

It seemed to me you were actively working on related stuff, and I was just too quickly curious without access to a build setup, so did not want to interfere even more :)

mlaurent closed this revision.Mar 7 2019, 12:14 PM