diff options
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/PropertyIds.cxx | 3 | ||||
-rw-r--r-- | writerfilter/source/dmapper/PropertyIds.hxx | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx index 53d101ce9c57..5506322c857c 100644 --- a/writerfilter/source/dmapper/PropertyIds.cxx +++ b/writerfilter/source/dmapper/PropertyIds.cxx @@ -34,14 +34,13 @@ struct PropertyNameSupplier_Impl PropertyNameSupplier::PropertyNameSupplier() : - m_pImpl(new PropertyNameSupplier_Impl) + m_pImpl(new PropertyNameSupplier_Impl()) { } PropertyNameSupplier::~PropertyNameSupplier() { - delete m_pImpl; } diff --git a/writerfilter/source/dmapper/PropertyIds.hxx b/writerfilter/source/dmapper/PropertyIds.hxx index 618d02dec441..51b27320cc3a 100644 --- a/writerfilter/source/dmapper/PropertyIds.hxx +++ b/writerfilter/source/dmapper/PropertyIds.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX +#include <memory> namespace writerfilter { namespace dmapper{ @@ -380,7 +381,7 @@ enum PropertyIds struct PropertyNameSupplier_Impl; class PropertyNameSupplier { - PropertyNameSupplier_Impl* m_pImpl; + std::unique_ptr<PropertyNameSupplier_Impl> m_pImpl; public: PropertyNameSupplier(); ~PropertyNameSupplier(); |