summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-17 09:43:45 +0200
committerNoel Grandin <noel@peralex.com>2015-11-17 10:59:48 +0200
commitedc264d1da7d4240c27c9f98efab09e84d78fff3 (patch)
tree1b5c5904b5f965660c045c5c7e16fd70c96b5c34 /include
parent85d7a76aba066553b8ecf385f295b1630d50ab8a (diff)
use unique_ptr for pImpl in unotools/
Change-Id: I4128ca0d4ff18f6e0c3c9f8ecad13b69c38c3157
Diffstat (limited to 'include')
-rw-r--r--include/unotools/eventlisteneradapter.hxx6
-rw-r--r--include/unotools/misccfg.hxx4
-rw-r--r--include/unotools/searchopt.hxx3
3 files changed, 6 insertions, 7 deletions
diff --git a/include/unotools/eventlisteneradapter.hxx b/include/unotools/eventlisteneradapter.hxx
index 78408ed2b46b..74f608922ba4 100644
--- a/include/unotools/eventlisteneradapter.hxx
+++ b/include/unotools/eventlisteneradapter.hxx
@@ -16,11 +16,13 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <unotools/unotoolsdllapi.h>
#ifndef INCLUDED_UNOTOOLS_EVENTLISTENERADAPTER_HXX
#define INCLUDED_UNOTOOLS_EVENTLISTENERADAPTER_HXX
+
+#include <unotools/unotoolsdllapi.h>
#include <com/sun/star/lang/XComponent.hpp>
+#include <memory>
namespace utl
{
@@ -40,7 +42,7 @@ namespace utl
const OEventListenerAdapter& operator=( const OEventListenerAdapter& _rSource ) = delete;
protected:
- OEventListenerAdapterImpl* m_pImpl;
+ std::unique_ptr<OEventListenerAdapterImpl> m_pImpl;
protected:
OEventListenerAdapter();
diff --git a/include/unotools/misccfg.hxx b/include/unotools/misccfg.hxx
index eca80c4617aa..9aebe796b4e8 100644
--- a/include/unotools/misccfg.hxx
+++ b/include/unotools/misccfg.hxx
@@ -24,12 +24,8 @@
namespace utl
{
- class SfxMiscCfg;
-
class UNOTOOLS_DLLPUBLIC MiscCfg : public detail::Options
{
- SfxMiscCfg* pImpl;
-
public:
MiscCfg( );
virtual ~MiscCfg( );
diff --git a/include/unotools/searchopt.hxx b/include/unotools/searchopt.hxx
index c560ae98e429..5accfba2a2db 100644
--- a/include/unotools/searchopt.hxx
+++ b/include/unotools/searchopt.hxx
@@ -21,12 +21,13 @@
#define INCLUDED_UNOTOOLS_SEARCHOPT_HXX
#include <unotools/unotoolsdllapi.h>
+#include <memory>
class SvtSearchOptions_Impl;
class UNOTOOLS_DLLPUBLIC SvtSearchOptions
{
- SvtSearchOptions_Impl *pImpl;
+ std::unique_ptr<SvtSearchOptions_Impl> pImpl;
SvtSearchOptions( const SvtSearchOptions & ) = delete;
SvtSearchOptions & operator = ( const SvtSearchOptions & ) = delete;