mode: Port away from foreach loops over members without calls to owner
ClosedPublic

Authored by kossebau on Sep 3 2019, 1:40 PM.

Details

Summary

There is some small risk here:

  • overseen call chains which still call the owner and modify the container
  • other threads might access the same containers, even if class is not designed to be thread-safe, but wrong usages are currently caught mostly by the container copy

GIT_SILENT

Diff Detail

Repository
R39 KTextEditor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Sep 3 2019, 1:40 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptSep 3 2019, 1:40 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
kossebau requested review of this revision.Sep 3 2019, 1:40 PM
cullmann accepted this revision.Sep 3 2019, 4:49 PM
cullmann added a subscriber: cullmann.

That looks sane for me.
If there are threads this will all break into parts, there is no need to care for that (the shared containers are then not the real issue).

This revision is now accepted and ready to land.Sep 3 2019, 4:49 PM
This revision was automatically updated to reflect the committed changes.