Kaydet (Commit) 926392de authored tarafından Miklos Vajna's avatar Miklos Vajna

PropertyNameSupplier: use std::unique_ptr<>

Change-Id: I1e4cf3241bee20677f61ea334efc3aa4e490a016
üst b1a9498a
...@@ -34,14 +34,13 @@ struct PropertyNameSupplier_Impl ...@@ -34,14 +34,13 @@ struct PropertyNameSupplier_Impl
PropertyNameSupplier::PropertyNameSupplier() : PropertyNameSupplier::PropertyNameSupplier() :
m_pImpl(new PropertyNameSupplier_Impl) m_pImpl(new PropertyNameSupplier_Impl())
{ {
} }
PropertyNameSupplier::~PropertyNameSupplier() PropertyNameSupplier::~PropertyNameSupplier()
{ {
delete m_pImpl;
} }
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX #ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX #define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX
#include <memory>
namespace writerfilter { namespace writerfilter {
namespace dmapper{ namespace dmapper{
...@@ -380,7 +381,7 @@ enum PropertyIds ...@@ -380,7 +381,7 @@ enum PropertyIds
struct PropertyNameSupplier_Impl; struct PropertyNameSupplier_Impl;
class PropertyNameSupplier class PropertyNameSupplier
{ {
PropertyNameSupplier_Impl* m_pImpl; std::unique_ptr<PropertyNameSupplier_Impl> m_pImpl;
public: public:
PropertyNameSupplier(); PropertyNameSupplier();
~PropertyNameSupplier(); ~PropertyNameSupplier();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment