[PR #11383] [MERGED] [IslandWindow.cpp] Avoid double-fetching dropdownDuration #28536

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11383
Author: @SnirBroshi
Created: 9/30/2021
Status: Merged
Merged: 10/4/2021
Merged by: @undefined

Base: mainHead: patch-1


📝 Commits (1)

  • 9d7f8b5 [IslandWindow.cpp] Avoid double-fetching dropdownDuration

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+1 -1)

📄 Description

Summary of the Pull Request

The code saved args.DropdownDuration() to a local and then called the function again, instead of using the local.
Changed to use the local.

PR Checklist

  • Closes #xxx
  • CLA signed
  • Tests added/passed
  • Documentation updated
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.

Detailed Description of the Pull Request / Additional comments

I think this getter simply accesses a member on args, it doesn't parse the settings or anything, so compiler optimizes it, but seemed to make more sense to use the local.


🔄 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/11383 **Author:** [@SnirBroshi](https://github.com/SnirBroshi) **Created:** 9/30/2021 **Status:** ✅ Merged **Merged:** 10/4/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`9d7f8b5`](https://github.com/microsoft/terminal/commit/9d7f8b5e43f10609f5e07b7861aa0696d336bf14) [IslandWindow.cpp] Avoid double-fetching dropdownDuration ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+1 -1) </details> ### 📄 Description ## Summary of the Pull Request The code saved `args.DropdownDuration()` to a local and then called the function again, instead of using the local. Changed to use the local. ## PR Checklist * [ ] Closes #xxx * [x] CLA signed * [ ] Tests added/passed * [ ] Documentation updated * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. ## Detailed Description of the Pull Request / Additional comments I think this getter simply accesses a member on `args`, it doesn't parse the settings or anything, so compiler optimizes it, but seemed to make more sense to use the local. --- <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:29:10 +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#28536