diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /AK/CircularDuplexStream.h | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'AK/CircularDuplexStream.h')
-rw-r--r-- | AK/CircularDuplexStream.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/AK/CircularDuplexStream.h b/AK/CircularDuplexStream.h index e6d9b23826..1819e6254f 100644 --- a/AK/CircularDuplexStream.h +++ b/AK/CircularDuplexStream.h @@ -18,7 +18,7 @@ class CircularDuplexStream : public AK::DuplexStream { public: size_t write(ReadonlyBytes bytes) override { - const auto nwritten = min(bytes.size(), Capacity - m_queue.size()); + auto const nwritten = min(bytes.size(), Capacity - m_queue.size()); for (size_t idx = 0; idx < nwritten; ++idx) m_queue.enqueue(bytes[idx]); @@ -34,7 +34,7 @@ public: return false; } - const auto nwritten = write(bytes); + auto const nwritten = write(bytes); VERIFY(nwritten == bytes.size()); return true; } @@ -44,7 +44,7 @@ public: if (has_any_error()) return 0; - const auto nread = min(bytes.size(), m_queue.size()); + auto const nread = min(bytes.size(), m_queue.size()); for (size_t idx = 0; idx < nread; ++idx) bytes[idx] = m_queue.dequeue(); @@ -59,10 +59,10 @@ public: return 0; } - const auto nread = min(bytes.size(), seekback); + auto const nread = min(bytes.size(), seekback); for (size_t idx = 0; idx < nread; ++idx) { - const auto index = (m_total_written - seekback + idx) % Capacity; + auto const index = (m_total_written - seekback + idx) % Capacity; bytes[idx] = m_queue.m_storage[index]; } |