aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2024-09-12 15:32:54 +0200
committerMartin Ridgers <[email protected]>2024-09-19 15:26:13 +0200
commit7755b8ab1d3ee8ad57c8de7c99853adf9a28ae11 (patch)
treeb9384fde346056805a22eed678dd9d1aa13e62f1 /src
parentAppease Apple Clang's historical lack of std::span constructors (diff)
downloadzen-7755b8ab1d3ee8ad57c8de7c99853adf9a28ae11.tar.xz
zen-7755b8ab1d3ee8ad57c8de7c99853adf9a28ae11.zip
A clang-format pass
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/projectstore/projectstore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp
index f4ad869aa..ea45aa210 100644
--- a/src/zenserver/projectstore/projectstore.cpp
+++ b/src/zenserver/projectstore/projectstore.cpp
@@ -2065,10 +2065,10 @@ ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Hand
std::span<OplogEntryAddress> EntrySpan = Entries;
if (EntryPaging != nullptr)
{
- int32_t Size = int32_t(Entries.size());
+ int32_t Size = int32_t(Entries.size());
int32_t Start = std::clamp(EntryPaging->Start, 0, Size);
- int32_t End = std::clamp(EntryPaging->Start + EntryPaging->Count, 0, Size);
- EntrySpan = EntrySpan.subspan(Start, End - Start);
+ int32_t End = std::clamp(EntryPaging->Start + EntryPaging->Count, 0, Size);
+ EntrySpan = EntrySpan.subspan(Start, End - Start);
}
m_Storage->ReplayLogEntries(EntrySpan, [&](CbObjectView Op) { Handler(Op); });