summaryrefslogtreecommitdiffstats
path: root/include/xmloff/controlpropertyhdl.hxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-09-09 12:35:41 +0200
committerDavid Tardon <dtardon@redhat.com>2016-09-09 16:16:45 +0200
commitecb2850003ed2e9d40da1c3d3ac3ee043ce2bf76 (patch)
tree7c861ef3b3babadf06ef92d31e90393bccdcd64f /include/xmloff/controlpropertyhdl.hxx
parenttdf#86926 writerfilter allow fallback if exceptions (diff)
downloadcore-ecb2850003ed2e9d40da1c3d3ac3ee043ce2bf76.tar.gz
core-ecb2850003ed2e9d40da1c3d3ac3ee043ce2bf76.zip
use std::unique_ptr
Change-Id: Ic0cb9399e5cfc7237a3cda666b1d4f926761a9ca
Diffstat (limited to 'include/xmloff/controlpropertyhdl.hxx')
-rw-r--r--include/xmloff/controlpropertyhdl.hxx20
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();