mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 20:43:48 -07:00
core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
This commit is contained in:
@@ -1357,7 +1357,7 @@ void CHyprMasterLayout::runOrientationCycle(SLayoutMessageHeader& header, CVarLi
|
||||
|
||||
int nextOrPrev = 0;
|
||||
for (size_t i = 0; i < cycle.size(); ++i) {
|
||||
if (PWORKSPACEDATA->orientation == cycle.at(i)) {
|
||||
if (PWORKSPACEDATA->orientation == cycle[i]) {
|
||||
nextOrPrev = i + direction;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user