diff --git a/src/xmp.cpp b/src/xmp.cpp index 133d38d6..816d9de5 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -309,12 +309,12 @@ namespace Exiv2 { } Xmpdatum::Xmpdatum(const XmpKey& key, const Value* pValue) - : p_(new Impl(key, pValue)) + : p_(std::make_unique(key, pValue)) { } Xmpdatum::Xmpdatum(const Xmpdatum& rhs) - : Metadatum(rhs), p_(new Impl(*rhs.p_)) + : Metadatum(rhs), p_(std::make_unique(*rhs.p_)) { }