diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-17 15:40:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-18 08:35:35 +0200 |
commit | 21c5ff1287c05e24d5cc2b6100866e6992ff8381 (patch) | |
tree | 556ccbda5428414aa00d5aa1d437f245dc1cec20 /extensions | |
parent | 2e9277c05034c157d640c289d59499be9d1ca382 (diff) |
use unique_ptr for pImpl in extensions,hwpfilter/
Change-Id: I476ba7ec2ebee8c61bf9bb6ff0309cc40affb275
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 1 | ||||
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.hxx | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index 616a72decdde..6ede832f8e25 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -219,7 +219,6 @@ namespace abp } ODataSourceContext::~ODataSourceContext() { - delete(m_pImpl); } diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx index 87d3588134ff..4b0bc51e252c 100644 --- a/extensions/source/abpilot/datasourcehandling.hxx +++ b/extensions/source/abpilot/datasourcehandling.hxx @@ -22,6 +22,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/XComponentContext.hpp> +#include <memory> #include "abptypes.hxx" @@ -45,7 +46,7 @@ namespace abp class ODataSourceContext { private: - ODataSourceContextImpl* m_pImpl; + std::unique_ptr<ODataSourceContextImpl> m_pImpl; public: explicit ODataSourceContext( |