diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-17 15:32:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-18 08:35:34 +0200 |
commit | 2e9277c05034c157d640c289d59499be9d1ca382 (patch) | |
tree | a5cc868d73bf7a2afddd21b3fed86eea75d7a858 /include/editeng | |
parent | 032dae364b4853635186b7541e40c71588f9050a (diff) |
use unique_ptr for pImpl in editeng/
Change-Id: I43ae9f706db15594b3a0c5cba41436d009588393
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/brushitem.hxx | 3 | ||||
-rw-r--r-- | include/editeng/editobj.hxx | 3 | ||||
-rw-r--r-- | include/editeng/fieldupdater.hxx | 3 | ||||
-rw-r--r-- | include/editeng/svxacorr.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unofield.hxx | 3 |
5 files changed, 9 insertions, 5 deletions
diff --git a/include/editeng/brushitem.hxx b/include/editeng/brushitem.hxx index 85ca68af1f56..d219c1f6ef50 100644 --- a/include/editeng/brushitem.hxx +++ b/include/editeng/brushitem.hxx @@ -23,6 +23,7 @@ #include <vcl/wall.hxx> #include <tools/link.hxx> #include <editeng/editengdllapi.h> +#include <memory> // class SvxBrushItem ---------------------------------------------------- @@ -46,7 +47,7 @@ class EDITENG_DLLPUBLIC SvxBrushItem : public SfxPoolItem { Color aColor; sal_Int32 nShadingValue; - SvxBrushItem_Impl* pImpl; + std::unique_ptr<SvxBrushItem_Impl> pImpl; OUString maStrLink; OUString maStrFilter; SvxGraphicPosition eGraphicPos; diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx index 6a0eac90b886..495571a319b8 100644 --- a/include/editeng/editobj.hxx +++ b/include/editeng/editobj.hxx @@ -32,6 +32,7 @@ #include <com/sun/star/text/textfield/Type.hpp> #include <vector> +#include <memory> class SfxItemPool; class SfxStyleSheetPool; @@ -62,7 +63,7 @@ class EDITENG_DLLPUBLIC EditTextObject : public SfxItemPoolUser friend class editeng::FieldUpdaterImpl; friend class ImpEditEngine; - EditTextObjectImpl* mpImpl; + std::unique_ptr<EditTextObjectImpl> mpImpl; EditTextObject& operator=( const EditTextObject& ) = delete; diff --git a/include/editeng/fieldupdater.hxx b/include/editeng/fieldupdater.hxx index 2fd7c4cb089f..4f87ac338f0b 100644 --- a/include/editeng/fieldupdater.hxx +++ b/include/editeng/fieldupdater.hxx @@ -11,6 +11,7 @@ #define INCLUDED_EDITENG_FIELDUPDATER_HXX #include <editeng/editengdllapi.h> +#include <memory> class EditTextObject; @@ -24,7 +25,7 @@ class FieldUpdaterImpl; */ class EDITENG_DLLPUBLIC FieldUpdater { - FieldUpdaterImpl* mpImpl; + std::unique_ptr<FieldUpdaterImpl> mpImpl; FieldUpdater(); // disabled public: diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 9b0f05fe69c6..a839e2208f0c 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -133,7 +133,7 @@ public: class EDITENG_DLLPUBLIC SvxAutocorrWordList { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; SvxAutocorrWordList( const SvxAutocorrWordList& ) = delete; const SvxAutocorrWordList& operator= ( const SvxAutocorrWordList& ) = delete; diff --git a/include/editeng/unofield.hxx b/include/editeng/unofield.hxx index be46bc54f3c8..3bfd691ac53d 100644 --- a/include/editeng/unofield.hxx +++ b/include/editeng/unofield.hxx @@ -32,6 +32,7 @@ #include <comphelper/servicehelper.hxx> #include <editeng/mutxhelp.hxx> +#include <memory> class SvxUnoFieldData_Impl; class SfxItemPropertySet; @@ -51,7 +52,7 @@ private: css::uno::Reference< css::text::XTextRange > mxAnchor; const SfxItemPropertySet* mpPropSet; sal_Int32 mnServiceId; - SvxUnoFieldData_Impl* mpImpl; + std::unique_ptr<SvxUnoFieldData_Impl> mpImpl; protected: css::uno::Sequence< css::uno::Type > maTypeSequence; |