Skip to content

Commit 3526977

Browse files
committed
Use const-type pointers
1 parent 56cbe3d commit 3526977

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/openPMD/RecordComponent.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class RecordComponent : public BaseRecordComponent
381381
* @param extent Extent within the dataset, counted from the offset.
382382
*/
383383
template <typename T>
384-
void storeChunkRaw(T *data, Offset offset, Extent extent);
384+
void storeChunkRaw(T const *data, Offset offset, Extent extent);
385385

386386
/** Store a chunk of data from a contiguous container.
387387
*

include/openPMD/RecordComponent.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ RecordComponent::storeChunk(std::shared_ptr<T[]> data, Offset o, Extent e)
291291
}
292292

293293
template <typename T>
294-
void RecordComponent::storeChunkRaw(T *ptr, Offset offset, Extent extent)
294+
void RecordComponent::storeChunkRaw(T const *ptr, Offset offset, Extent extent)
295295
{
296296
storeChunk(auxiliary::shareRaw(ptr), std::move(offset), std::move(extent));
297297
}

0 commit comments

Comments
 (0)