diff options
| author | Martin Ridgers <[email protected]> | 2024-09-12 14:01:48 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2024-09-19 15:26:13 +0200 |
| commit | af2a41282c9ecb8fc8a54557079ab4bcb957b350 (patch) | |
| tree | e80ee9a6289496a699f3405cb79a8e3de3919259 /src/zenserver/projectstore/projectstore.cpp | |
| parent | Updated changelog (diff) | |
| download | zen-af2a41282c9ecb8fc8a54557079ab4bcb957b350.tar.xz zen-af2a41282c9ecb8fc8a54557079ab4bcb957b350.zip | |
Placate clang
Diffstat (limited to 'src/zenserver/projectstore/projectstore.cpp')
| -rw-r--r-- | src/zenserver/projectstore/projectstore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp index d47b4e50b..b58f490e2 100644 --- a/src/zenserver/projectstore/projectstore.cpp +++ b/src/zenserver/projectstore/projectstore.cpp @@ -2032,14 +2032,14 @@ ProjectStore::Oplog::IterateFileMap( } void -ProjectStore::Oplog::IterateOplog(std::function<void(CbObjectView)>&& Handler, const Paging& EntryPaging) +ProjectStore::Oplog::IterateOplog(std::function<void(CbObjectView)>&& Handler, const Paging* EntryPaging) { RwLock::SharedLockScope _(m_OplogLock); IterateOplogLocked(std::move(Handler), EntryPaging); } void -ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Handler, const Paging& EntryPaging) +ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Handler, const Paging* EntryPaging) { ZEN_TRACE_CPU("Store::Oplog::IterateOplogLocked"); if (!m_Storage) @@ -2063,9 +2063,9 @@ ProjectStore::Oplog::IterateOplogLocked(std::function<void(CbObjectView)>&& Hand }); std::span<OplogEntryAddress> EntrySpan; - if (EntryPaging.Start >= 0 || EntryPaging.Count >= 0) + if (EntryPaging != nullptr) { - int32_t Indices[2] = {EntryPaging.Start, EntryPaging.Start + EntryPaging.Count}; + int32_t Indices[2] = {EntryPaging->Start, EntryPaging->Start + EntryPaging->Count}; for (int32_t& Index : Indices) { Index = std::max<int32_t>(0, Index); |