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

Authored by kossebau on Sep 3 2019, 1:30 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:30 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptSep 3 2019, 1:30 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
kossebau requested review of this revision.Sep 3 2019, 1:30 PM

Also candidate for post 5.62-tagging, for some weeks of testing in master. Like all the following review requests. only the autotest one should be good to go in before, not critical to users.

kossebau edited the summary of this revision. (Show Details)Sep 3 2019, 1:32 PM
cullmann accepted this revision.Sep 7 2019, 7:38 AM
cullmann added a subscriber: cullmann.

Looks OK.

This revision is now accepted and ready to land.Sep 7 2019, 7:38 AM
This revision was automatically updated to reflect the committed changes.