core: avoid .at() and use [] operator (#9347)
avoid .at() where it makes sense and use [] operator in loops.
This commit is contained in:
parent
868b2b544a
commit
f1e32cd122
8 changed files with 25 additions and 25 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue