core: make most for loops use const references (#7527)
why not let the compiler optimise things for us at hyprspeeds when we can.
This commit is contained in:
parent
9c5a37a797
commit
8d6c18076f
31 changed files with 169 additions and 169 deletions
|
|
@ -151,8 +151,8 @@ bool CXWaylandSurface::wantsFocus() {
|
|||
HYPRATOMS["_NET_WM_WINDOW_TYPE_UTILITY"],
|
||||
};
|
||||
|
||||
for (auto& searched : search) {
|
||||
for (auto& a : atoms) {
|
||||
for (auto const& searched : search) {
|
||||
for (auto const& a : atoms) {
|
||||
if (a == searched)
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue