diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-17 14:46:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-18 08:35:34 +0200 |
commit | 0d62716f67b6269448eeae1f012f9512b503f390 (patch) | |
tree | b390a03fed77b2bee5045f27d0609df1b863d92f /include/svl | |
parent | f43db673558a1139fba783973c87de9b79033425 (diff) |
use unique_ptr for pImpl in svl/
Change-Id: Ieef897314ac0f056c0a09a5182ca59800fd58f41
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/SfxBroadcaster.hxx | 3 | ||||
-rw-r--r-- | include/svl/gridprinter.hxx | 3 | ||||
-rw-r--r-- | include/svl/inethist.hxx | 3 | ||||
-rw-r--r-- | include/svl/itemprop.hxx | 5 | ||||
-rw-r--r-- | include/svl/lstner.hxx | 3 | ||||
-rw-r--r-- | include/svl/numuno.hxx | 3 | ||||
-rw-r--r-- | include/svl/sharedstringpool.hxx | 3 | ||||
-rw-r--r-- | include/svl/stylepool.hxx | 2 | ||||
-rw-r--r-- | include/svl/undo.hxx | 4 |
9 files changed, 18 insertions, 11 deletions
diff --git a/include/svl/SfxBroadcaster.hxx b/include/svl/SfxBroadcaster.hxx index 97afa702c224..e5fb5e16b96a 100644 --- a/include/svl/SfxBroadcaster.hxx +++ b/include/svl/SfxBroadcaster.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SVL_BRDCST_HXX #include <svl/svldllapi.h> +#include <memory> class SfxListener; class SfxHint; @@ -28,7 +29,7 @@ class SfxBroadcasterTest; class SVL_DLLPUBLIC SfxBroadcaster { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; private: void AddListener( SfxListener& rListener ); diff --git a/include/svl/gridprinter.hxx b/include/svl/gridprinter.hxx index 446072bcf2af..6f3f61b1a687 100644 --- a/include/svl/gridprinter.hxx +++ b/include/svl/gridprinter.hxx @@ -12,6 +12,7 @@ #include <rtl/ustring.hxx> #include <svl/svldllapi.h> +#include <memory> namespace svl { @@ -22,7 +23,7 @@ namespace svl { class SVL_DLLPUBLIC GridPrinter { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; public: GridPrinter( size_t nRows, size_t nCols, bool bPrint = true ); diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx index 90a12bbb70fd..2a03d3b90d91 100644 --- a/include/svl/inethist.hxx +++ b/include/svl/inethist.hxx @@ -23,6 +23,7 @@ #include <svl/hint.hxx> #include <svl/svldllapi.h> #include <tools/urlobj.hxx> +#include <memory> class INetURLHistory_Impl; class SVL_DLLPUBLIC INetURLHistory : public SfxBroadcaster @@ -35,7 +36,7 @@ class SVL_DLLPUBLIC INetURLHistory : public SfxBroadcaster /** Representation. */ - INetURLHistory_Impl *m_pImpl; + std::unique_ptr<INetURLHistory_Impl> m_pImpl; /** Construction/Destruction. */ diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 56a82d9af91e..1c8923f4cee1 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -26,6 +26,7 @@ #include <svl/itemset.hxx> #include <svl/svldllapi.h> #include <vector> +#include <memory> /// map a property between beans::XPropertySet and SfxPoolItem struct SfxItemPropertyMapEntry @@ -87,7 +88,7 @@ typedef std::vector< SfxItemPropertyNamedEntry > PropertyEntryVector_t; class SfxItemPropertyMap_Impl; class SVL_DLLPUBLIC SfxItemPropertyMap { - SfxItemPropertyMap_Impl* m_pImpl; + std::unique_ptr<SfxItemPropertyMap_Impl> m_pImpl; public: SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries ); SfxItemPropertyMap( const SfxItemPropertyMap& rSource ); @@ -156,7 +157,7 @@ public: struct SfxItemPropertySetInfo_Impl; class SVL_DLLPUBLIC SfxItemPropertySetInfo : public cppu::WeakImplHelper1<css::beans::XPropertySetInfo> { - SfxItemPropertySetInfo_Impl* m_pImpl; + std::unique_ptr<SfxItemPropertySetInfo_Impl> m_pImpl; public: SfxItemPropertySetInfo(const SfxItemPropertyMap &rMap ); diff --git a/include/svl/lstner.hxx b/include/svl/lstner.hxx index bfa2330805ed..985ff526b7ee 100644 --- a/include/svl/lstner.hxx +++ b/include/svl/lstner.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SVL_LSTNER_HXX #include <svl/svldllapi.h> +#include <memory> class SfxBroadcaster; class SfxHint; @@ -27,7 +28,7 @@ class SfxHint; class SVL_DLLPUBLIC SfxListener { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; private: const SfxListener& operator=(const SfxListener &) = delete; diff --git a/include/svl/numuno.hxx b/include/svl/numuno.hxx index 4dab2ef8e908..827129393b1e 100644 --- a/include/svl/numuno.hxx +++ b/include/svl/numuno.hxx @@ -24,6 +24,7 @@ #include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <cppuhelper/implbase2.hxx> +#include <memory> class SvNumberFormatter; class SvNumFmtSuppl_Impl; @@ -51,7 +52,7 @@ class SVL_DLLPUBLIC SvNumberFormatsSupplierObj : public cppu::WeakAggImplHelper2 css::lang::XUnoTunnel> { private: - SvNumFmtSuppl_Impl* pImpl; + std::unique_ptr<SvNumFmtSuppl_Impl> pImpl; public: SvNumberFormatsSupplierObj(); diff --git a/include/svl/sharedstringpool.hxx b/include/svl/sharedstringpool.hxx index ae958ed220c4..88adc1b48b79 100644 --- a/include/svl/sharedstringpool.hxx +++ b/include/svl/sharedstringpool.hxx @@ -12,6 +12,7 @@ #include <svl/svldllapi.h> #include <rtl/ustring.hxx> +#include <memory> class CharClass; @@ -27,7 +28,7 @@ class SharedString; class SVL_DLLPUBLIC SharedStringPool { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; SharedStringPool( const SharedStringPool& ) = delete; SharedStringPool& operator=( const SharedStringPool& ) = delete; diff --git a/include/svl/stylepool.hxx b/include/svl/stylepool.hxx index f12528ad56c4..93caa6aea0f9 100644 --- a/include/svl/stylepool.hxx +++ b/include/svl/stylepool.hxx @@ -29,7 +29,7 @@ class IStylePoolIteratorAccess; class SVL_DLLPUBLIC StylePool { private: - StylePoolImpl *pImpl; + std::unique_ptr<StylePoolImpl> pImpl; public: typedef std::shared_ptr<SfxItemSet> SfxItemSet_Pointer_t; diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index d5bb705efbc6..3aac88f79965 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -83,7 +83,7 @@ typedef sal_Int32 UndoStackMark; class SVL_DLLPUBLIC SfxUndoActions { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; public: SfxUndoActions(); @@ -133,7 +133,7 @@ class SVL_DLLPUBLIC SfxListUndoAction : public SfxUndoAction, public SfxUndoArra */ { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; public: |