summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/abpilot/datasourcehandling.cxx4
-rw-r--r--extensions/source/abpilot/datasourcehandling.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx
index ac9cbe69488c..3b809697bdde 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -333,8 +333,7 @@ namespace abp
{
if( this != &_rSource )
{
- delete m_pImpl;
- m_pImpl = new ODataSourceImpl( *_rSource.m_pImpl );
+ m_pImpl.reset( new ODataSourceImpl( *_rSource.m_pImpl ) );
}
return *this;
}
@@ -348,7 +347,6 @@ namespace abp
ODataSource::~ODataSource( )
{
- delete m_pImpl;
}
void ODataSource::store(const AddressSettings& rSettings)
diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx
index 97c044150a9c..65a4398c6846 100644
--- a/extensions/source/abpilot/datasourcehandling.hxx
+++ b/extensions/source/abpilot/datasourcehandling.hxx
@@ -96,7 +96,7 @@ namespace abp
class ODataSource
{
private:
- ODataSourceImpl* m_pImpl;
+ std::unique_ptr<ODataSourceImpl> m_pImpl;
public: