Kaydet (Commit) e420085f authored tarafından Arnold Dumas's avatar Arnold Dumas Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in datasourcehandling

Change-Id: Ib019d26a72d234245cc1a7322bfbfb11705f29d3
Reviewed-on: https://gerrit.libreoffice.org/28231Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 514c88a3
...@@ -333,8 +333,7 @@ namespace abp ...@@ -333,8 +333,7 @@ namespace abp
{ {
if( this != &_rSource ) if( this != &_rSource )
{ {
delete m_pImpl; m_pImpl.reset( new ODataSourceImpl( *_rSource.m_pImpl ) );
m_pImpl = new ODataSourceImpl( *_rSource.m_pImpl );
} }
return *this; return *this;
} }
...@@ -348,7 +347,6 @@ namespace abp ...@@ -348,7 +347,6 @@ namespace abp
ODataSource::~ODataSource( ) ODataSource::~ODataSource( )
{ {
delete m_pImpl;
} }
void ODataSource::store(const AddressSettings& rSettings) void ODataSource::store(const AddressSettings& rSettings)
......
...@@ -96,7 +96,7 @@ namespace abp ...@@ -96,7 +96,7 @@ namespace abp
class ODataSource class ODataSource
{ {
private: private:
ODataSourceImpl* m_pImpl; std::unique_ptr<ODataSourceImpl> m_pImpl;
public: public:
......
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