Skip to content

Commit 5d1df84

Browse files
committed
[ntuple] clang-format RPageStorage.hxx
1 parent 6e1dff4 commit 5d1df84

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tree/ntuple/v7/inc/ROOT/RPageStorage.hxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public:
104104
RSealedPage(const RSealedPage &other) = default;
105105
RSealedPage &operator=(const RSealedPage &other) = default;
106106
RSealedPage(RSealedPage &&other) = default;
107-
RSealedPage& operator =(RSealedPage &&other) = default;
107+
RSealedPage &operator=(RSealedPage &&other) = default;
108108

109109
const void *GetBuffer() const { return fBuffer; }
110110
void SetBuffer(const void *buffer) { fBuffer = buffer; }
@@ -156,9 +156,9 @@ protected:
156156
public:
157157
explicit RPageStorage(std::string_view name);
158158
RPageStorage(const RPageStorage &other) = delete;
159-
RPageStorage& operator =(const RPageStorage &other) = delete;
159+
RPageStorage &operator=(const RPageStorage &other) = delete;
160160
RPageStorage(RPageStorage &&other) = default;
161-
RPageStorage& operator =(RPageStorage &&other) = default;
161+
RPageStorage &operator=(RPageStorage &&other) = default;
162162
virtual ~RPageStorage();
163163

164164
/// Whether the concrete implementation is a sink or a source
@@ -256,10 +256,10 @@ private:
256256
public:
257257
RPageSink(std::string_view ntupleName, const RNTupleWriteOptions &options);
258258

259-
RPageSink(const RPageSink&) = delete;
260-
RPageSink& operator=(const RPageSink&) = delete;
261-
RPageSink(RPageSink&&) = default;
262-
RPageSink& operator=(RPageSink&&) = default;
259+
RPageSink(const RPageSink &) = delete;
260+
RPageSink &operator=(const RPageSink &) = delete;
261+
RPageSink(RPageSink &&) = default;
262+
RPageSink &operator=(RPageSink &&) = default;
263263
~RPageSink() override;
264264

265265
EPageStorageType GetType() final { return EPageStorageType::kSink; }
@@ -517,7 +517,7 @@ public:
517517
private:
518518
RNTupleDescriptor fDescriptor;
519519
mutable std::shared_mutex fDescriptorLock;
520-
REntryRange fEntryRange; ///< Used by the cluster pool to prevent reading beyond the given range
520+
REntryRange fEntryRange; ///< Used by the cluster pool to prevent reading beyond the given range
521521
bool fHasStructure = false; ///< Set to true once LoadStructure() is called
522522
bool fIsAttached = false; ///< Set to true once Attach() is called
523523

@@ -597,8 +597,8 @@ protected:
597597

598598
public:
599599
RPageSource(std::string_view ntupleName, const RNTupleReadOptions &fOptions);
600-
RPageSource(const RPageSource&) = delete;
601-
RPageSource& operator=(const RPageSource&) = delete;
600+
RPageSource(const RPageSource &) = delete;
601+
RPageSource &operator=(const RPageSource &) = delete;
602602
RPageSource(RPageSource &&) = delete;
603603
RPageSource &operator=(RPageSource &&) = delete;
604604
~RPageSource() override;
@@ -651,9 +651,9 @@ public:
651651

652652
/// Read the packed and compressed bytes of a page into the memory buffer provided by `sealedPage`. The sealed page
653653
/// can be used subsequently in a call to `RPageSink::CommitSealedPage`.
654-
/// The `fSize` and `fNElements` member of the sealedPage parameters are always set. If `sealedPage.fBuffer` is `nullptr`,
655-
/// no data will be copied but the returned size information can be used by the caller to allocate a large enough
656-
/// buffer and call `LoadSealedPage` again.
654+
/// The `fSize` and `fNElements` member of the sealedPage parameters are always set. If `sealedPage.fBuffer` is
655+
/// `nullptr`, no data will be copied but the returned size information can be used by the caller to allocate a large
656+
/// enough buffer and call `LoadSealedPage` again.
657657
virtual void
658658
LoadSealedPage(DescriptorId_t physicalColumnId, RClusterIndex clusterIndex, RSealedPage &sealedPage) = 0;
659659

tree/ntuple/v7/src/RNTupleMerger.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void ROOT::Experimental::Internal::RNTupleMerger::Merge(std::span<RPageSource *>
278278
// refs out
279279
&sealedPages, &sealedPageBuffers]() {
280280
assert(pageNo < sealedPages.size());
281-
assert(sealedPages.size() == sealedPageBuffers.size());
281+
assert(pageNo < sealedPageBuffers.size());
282282

283283
ROnDiskPage::Key key{columnId, pageNo};
284284
auto onDiskPage = cluster->GetOnDiskPage(key);

0 commit comments

Comments
 (0)