diff options
author | David Tardon <dtardon@redhat.com> | 2016-09-09 12:35:41 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-09-09 16:16:45 +0200 |
commit | ecb2850003ed2e9d40da1c3d3ac3ee043ce2bf76 (patch) | |
tree | 7c861ef3b3babadf06ef92d31e90393bccdcd64f /include | |
parent | bdd4a238a1d8a0cbbebbd759011050659668f92b (diff) |
use std::unique_ptr
Change-Id: Ic0cb9399e5cfc7237a3cda666b1d4f926761a9ca
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/controlpropertyhdl.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/xmloff/controlpropertyhdl.hxx b/include/xmloff/controlpropertyhdl.hxx index 685f4078e411..e043b167c7e2 100644 --- a/include/xmloff/controlpropertyhdl.hxx +++ b/include/xmloff/controlpropertyhdl.hxx @@ -21,6 +21,9 @@ #define INCLUDED_XMLOFF_CONTROLPROPERTYHDL_HXX #include <sal/config.h> + +#include <memory> + #include <xmloff/dllapi.h> #include <xmloff/prhdlfac.hxx> #include <rtl/ref.hxx> @@ -110,16 +113,13 @@ namespace xmloff class XMLOFF_DLLPUBLIC OControlPropertyHandlerFactory : public XMLPropertyHandlerFactory { protected: - mutable XMLConstantsPropertyHandler* m_pTextAlignHandler; - mutable OControlBorderHandler* m_pControlBorderStyleHandler; - mutable OControlBorderHandler* m_pControlBorderColorHandler; - mutable ORotationAngleHandler* m_pRotationAngleHandler; - mutable OFontWidthHandler* m_pFontWidthHandler; - mutable XMLConstantsPropertyHandler* m_pFontEmphasisHandler; - mutable XMLConstantsPropertyHandler* m_pFontReliefHandler; - - protected: - virtual ~OControlPropertyHandlerFactory(); + mutable std::unique_ptr<XMLConstantsPropertyHandler> m_pTextAlignHandler; + mutable std::unique_ptr<OControlBorderHandler> m_pControlBorderStyleHandler; + mutable std::unique_ptr<OControlBorderHandler> m_pControlBorderColorHandler; + mutable std::unique_ptr<ORotationAngleHandler> m_pRotationAngleHandler; + mutable std::unique_ptr<OFontWidthHandler> m_pFontWidthHandler; + mutable std::unique_ptr<XMLConstantsPropertyHandler> m_pFontEmphasisHandler; + mutable std::unique_ptr<XMLConstantsPropertyHandler> m_pFontReliefHandler; public: OControlPropertyHandlerFactory(); |