diff --git a/Src/libCZI/CziMetadataSegment.cpp b/Src/libCZI/CziMetadataSegment.cpp index c2fc9e70..d0205d9b 100644 --- a/Src/libCZI/CziMetadataSegment.cpp +++ b/Src/libCZI/CziMetadataSegment.cpp @@ -7,7 +7,7 @@ using namespace libCZI; -CCziMetadataSegment::CCziMetadataSegment(const CCZIParse::MetadataSegmentData& data, std::function deleter) +CCziMetadataSegment::CCziMetadataSegment(const CCZIParse::MetadataSegmentData& data, const std::function& deleter) : spXmlData(std::shared_ptr(data.ptrXmlData, deleter)), spAttachment(std::shared_ptr(data.ptrAttachment, deleter)), xmlDataSize(data.xmlDataSize), @@ -15,9 +15,6 @@ CCziMetadataSegment::CCziMetadataSegment(const CCZIParse::MetadataSegmentData& d { } -CCziMetadataSegment::~CCziMetadataSegment() -{} - // interface ISubBlock /*virtual*/void CCziMetadataSegment::DangerousGetRawData(MemBlkType type, const void*& ptr, size_t& size) const { diff --git a/Src/libCZI/CziMetadataSegment.h b/Src/libCZI/CziMetadataSegment.h index 174ae9ca..22af1257 100644 --- a/Src/libCZI/CziMetadataSegment.h +++ b/Src/libCZI/CziMetadataSegment.h @@ -15,8 +15,7 @@ class CCziMetadataSegment : public libCZI::IMetadataSegment std::uint64_t xmlDataSize; std::uint32_t attachmentSize; public: - CCziMetadataSegment(const CCZIParse::MetadataSegmentData& data, std::function deleter); - ~CCziMetadataSegment() override; + CCziMetadataSegment(const CCZIParse::MetadataSegmentData& data, const std::function& deleter); // interface ISubBlock void DangerousGetRawData(MemBlkType type, const void*& ptr, size_t& size) const override;