[PR #1016] [MERGED] gui: Use range-based for loop instead of foreach macro #1742

Closed
opened 2026-05-05 08:00:50 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/debauchee/barrier/pull/1016
Author: @p12tic
Created: 1/10/2021
Status: Merged
Merged: 1/10/2021
Merged by: @p12tic

Base: masterHead: cleanup-foreach-loop


📝 Commits (1)

  • 0259703 gui: Use range-based for loop instead of foreach macro

📊 Changes

10 files changed (+30 additions, -24 deletions)

View changed files

📝 src/gui/src/ActionDialog.cpp (+4 -2)
📝 src/gui/src/Fingerprint.cpp (+1 -2)
📝 src/gui/src/MainWindow.cpp (+2 -3)
📝 src/gui/src/QBarrierApplication.cpp (+1 -2)
📝 src/gui/src/QUtility.cpp (+1 -2)
📝 src/gui/src/Screen.cpp (+2 -1)
📝 src/gui/src/ScreenSetupModel.cpp (+2 -1)
📝 src/gui/src/ServerConfig.cpp (+8 -4)
📝 src/gui/src/ServerConfigDialog.cpp (+4 -2)
📝 src/gui/src/ZeroconfService.cpp (+5 -5)

📄 Description

The foreach macro is no longer needed when we have C++11 range-based for loop.


🔄 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/debauchee/barrier/pull/1016 **Author:** [@p12tic](https://github.com/p12tic) **Created:** 1/10/2021 **Status:** ✅ Merged **Merged:** 1/10/2021 **Merged by:** [@p12tic](https://github.com/p12tic) **Base:** `master` ← **Head:** `cleanup-foreach-loop` --- ### 📝 Commits (1) - [`0259703`](https://github.com/debauchee/barrier/commit/0259703cb26cdb6748a78d567ab9bef8721feeb9) gui: Use range-based for loop instead of foreach macro ### 📊 Changes **10 files changed** (+30 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/gui/src/ActionDialog.cpp` (+4 -2) 📝 `src/gui/src/Fingerprint.cpp` (+1 -2) 📝 `src/gui/src/MainWindow.cpp` (+2 -3) 📝 `src/gui/src/QBarrierApplication.cpp` (+1 -2) 📝 `src/gui/src/QUtility.cpp` (+1 -2) 📝 `src/gui/src/Screen.cpp` (+2 -1) 📝 `src/gui/src/ScreenSetupModel.cpp` (+2 -1) 📝 `src/gui/src/ServerConfig.cpp` (+8 -4) 📝 `src/gui/src/ServerConfigDialog.cpp` (+4 -2) 📝 `src/gui/src/ZeroconfService.cpp` (+5 -5) </details> ### 📄 Description The foreach macro is no longer needed when we have C++11 range-based for loop. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 08:00:50 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1742
No description provided.