Repository navigation
Split pinStoreGitAttributes, copyText and trackCopied - #2430
Conversation
Part of #2157. Behaviour-preserving extractions, comments moved verbatim: - Pass::pinStoreGitAttributes (CCN 18 to 10): the walk that keeps the user's own info/attributes lines moves to userAttributeLines() (9), in an anonymous namespace. - ClipboardManager::copyText (CCN 17 to 11): the snapshot of what the clipboard held before moves to saveWhatWasThere() (7). - ClipboardManager::trackCopied (CCN 15 to 11): the cap on m_otherCopies moves to makeRoomInOtherCopies() (5). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Anne Jan Brouwer <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai review |
Action not completed
|
nogeenhenk
left a comment
There was a problem hiding this comment.
Reviewed at 9e7afff. The ninth refactor for #2157; only the structure changes.
Pass::pinStoreGitAttributes:userAttributeLines()is the old walk unchanged, the empty-file case and the trailing blank lines included; the write after it is as before.ClipboardManager::copyText:saveWhatWasThere()is the old snapshot, still taken once per window and only underuseAutoclear && restoreClipboard, beforeforgetIfSaved()and the copy.ClipboardManager::trackCopied:makeRoomInOtherCopies()is the old cap of 16 with the same eviction (never a text still on the clipboard or in the selection), still before the append.
Nothing to add.
Generated by Claude Code
Summary
Part of #2157, batch 9. Only the structure changes: the extracted code is moved as it was, comments included.
Pass::pinStoreGitAttributesuserAttributeLines()(9)ClipboardManager::copyTextsaveWhatWasThere()(7)ClipboardManager::trackCopiedmakeRoomInOtherCopies()(5)pinStoreGitAttributes(): the walk that keeps the user's owninfo/attributeslines moves touserAttributeLines(), in an anonymous namespace. It still returns nothing for an empty file.copyText(): the snapshot of what the clipboard held before the first secret moves tosaveWhatWasThere(). TheuseAutoclear && restoreClipboardtest stays in the caller.trackCopied(): the cap of 16 onm_otherCopies, and the oldest-not-on-the-clipboard eviction, move tomakeRoomInOtherCopies().clipboardmanager.hnow includes<QClipboard>forQClipboard::Mode.Test plan
qmake6 -r CONFIG+=rnp && make -j12 && make checkin a scratchHOME/GNUPGHOME: 37 suites, 2,079 passed, 0 faileddoxygen Doxyfile: no warningslizard -C 14: all three at or below 11🤖 Generated with Claude Code
Summary by CodeRabbit