diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2024-08-26 17:25:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 17:25:39 +0200 |
| commit | 8d6c18076f3268a6c85c6085d29f898267028101 (patch) | |
| tree | 9db19e850b0a3e2c5d20d5ca2ad5f9878eca89b1 /src/protocols/core/Output.cpp | |
| parent | 9c5a37a797ea1f1829859ab5b07016b2f27f739c (diff) | |
core: make most for loops use const references (#7527)
why not let the compiler optimise things for us at hyprspeeds when we
can.
Diffstat (limited to 'src/protocols/core/Output.cpp')
| -rw-r--r-- | src/protocols/core/Output.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/Output.cpp b/src/protocols/core/Output.cpp index 8d0b0121..bcf62fae 100644 --- a/src/protocols/core/Output.cpp +++ b/src/protocols/core/Output.cpp @@ -118,7 +118,7 @@ bool CWLOutputProtocol::isDefunct() { } void CWLOutputProtocol::sendDone() { - for (auto& r : m_vOutputs) { + for (auto const& r : m_vOutputs) { r->resource->sendDone(); } } |
