[PR #15169] [MERGED] A more efficient copy assignment operator for Pane.LayoutSizeNode #30469

Open
opened 2026-01-31 09:41:00 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15169
Author: @jamespack
Created: 4/12/2023
Status: Merged
Merged: 4/14/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: terminal-11965


📝 Commits (1)

  • 00b1900 A more efficient copy assignment operator implementation for Pane::LayoutSizeNode. Eliminate now unneeded _AssignChildNode code block

📊 Changes

2 files changed (+4 additions, -34 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.LayoutSizeNode.cpp (+4 -31)
📝 src/cascadia/TerminalApp/Pane.h (+0 -3)

📄 Description

Summary of the Pull Request

This pull request updates the implementation of the copy assignment operator for Pane::LayoutSizeNode to a more efficient version and eliminates the need for the _AssignChildNode code block.

References and Relevant Issues

#11965 #11963

Detailed Description of the Pull Request / Additional comments

My understanding of the discussion and intent of the two linked issues is that this is a more efficient way to implement the copy assignment operator for Pane.LayoutSizeNode and eliminates the need for the code block _AssignChildNode. Since both were relatively small changes, I combined the two in one PR. If that is not desirable, I can separate them. All existing tests continue to pass.

image

Validation Steps Performed

All existing tests pass. No visible changes in behavior of the terminal.

PR Checklist


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15169 **Author:** [@jamespack](https://github.com/jamespack) **Created:** 4/12/2023 **Status:** ✅ Merged **Merged:** 4/14/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `terminal-11965` --- ### 📝 Commits (1) - [`00b1900`](https://github.com/microsoft/terminal/commit/00b1900c2c62a8511287021748149116173ced64) A more efficient copy assignment operator implementation for Pane::LayoutSizeNode. Eliminate now unneeded _AssignChildNode code block ### 📊 Changes **2 files changed** (+4 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.LayoutSizeNode.cpp` (+4 -31) 📝 `src/cascadia/TerminalApp/Pane.h` (+0 -3) </details> ### 📄 Description ## Summary of the Pull Request This pull request updates the implementation of the copy assignment operator for Pane::LayoutSizeNode to a more efficient version and eliminates the need for the _AssignChildNode code block. ## References and Relevant Issues #11965 #11963 ## Detailed Description of the Pull Request / Additional comments My understanding of the discussion and intent of the two linked issues is that this is a more efficient way to implement the copy assignment operator for Pane.LayoutSizeNode and eliminates the need for the code block _AssignChildNode. Since both were relatively small changes, I combined the two in one PR. If that is not desirable, I can separate them. All existing tests continue to pass. <img width="769" alt="image" src="https://user-images.githubusercontent.com/2086722/231326683-8f685f58-5748-4d49-8a38-80ef5db3d5a2.png"> ## Validation Steps Performed All existing tests pass. No visible changes in behavior of the terminal. ## PR Checklist - [x] Closes #11963 - [x] Closes #11965 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:00 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30469