summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-02-06 12:18:04 +0100
committerGitHub <noreply@github.com>2025-02-06 11:18:04 +0000
commitf1e32cd122ad64ba7119ee7fe65f7c1074a65b91 (patch)
treefa6f884bcdd1c876c2fb15ef496ee4bc16d936f0 /src/layout/MasterLayout.cpp
parent868b2b544abb61764089b0e4e9b0fd153a9db26f (diff)
core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index 4773147f..dc301bfa 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -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;
}