diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-02 14:53:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:01:51 +0000 |
commit | 7d1b01070c330d45212cd69ea692b2263c23c2a6 (patch) | |
tree | 7ae6ecdd69cd3d8b6ce4431a39034186695497c0 /include/xmloff/shapeimport.hxx | |
parent | remove unused constants in HRC files (diff) | |
download | core-7d1b01070c330d45212cd69ea692b2263c23c2a6.tar.gz core-7d1b01070c330d45212cd69ea692b2263c23c2a6.zip |
remove some manual ref counting in svx and xmloff
Change-Id: Ica0b6ff8ff7fa9e65cd758160d6e3ea7110ebb46
Reviewed-on: https://gerrit.libreoffice.org/25824
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/xmloff/shapeimport.hxx')
-rw-r--r-- | include/xmloff/shapeimport.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/xmloff/shapeimport.hxx b/include/xmloff/shapeimport.hxx index aa4a7b4765f6..db54f5cb1ebd 100644 --- a/include/xmloff/shapeimport.hxx +++ b/include/xmloff/shapeimport.hxx @@ -270,9 +270,9 @@ class XMLOFF_DLLPUBLIC XMLShapeImportHelper : public salhelper::SimpleReferenceO XMLShapeImportPageContextImpl* mpPageContext; // PropertySetMappers and factory - XMLSdPropHdlFactory* mpSdPropHdlFactory; - SvXMLImportPropertyMapper* mpPropertySetMapper; - SvXMLImportPropertyMapper* mpPresPagePropsMapper; + rtl::Reference<XMLSdPropHdlFactory> mpSdPropHdlFactory; + rtl::Reference<SvXMLImportPropertyMapper> mpPropertySetMapper; + rtl::Reference<SvXMLImportPropertyMapper> mpPresPagePropsMapper; // contexts for Style and AutoStyle import SvXMLStylesContext* mpStylesContext; @@ -341,8 +341,8 @@ public: void SetAutoStylesContext(SvXMLStylesContext* pNew); // get factories and mappers - SvXMLImportPropertyMapper* GetPropertySetMapper() const { return mpPropertySetMapper; } - SvXMLImportPropertyMapper* GetPresPagePropsMapper() const { return mpPresPagePropsMapper; } + SvXMLImportPropertyMapper* GetPropertySetMapper() const { return mpPropertySetMapper.get(); } + SvXMLImportPropertyMapper* GetPresPagePropsMapper() const { return mpPresPagePropsMapper.get(); } // this function is called whenever the implementation classes like to add this new // shape to the given XShapes. @@ -409,7 +409,7 @@ public: /** queries the capability of the current model to create presentation shapes */ bool IsPresentationShapesSupported(); - XMLSdPropHdlFactory* GetSdPropHdlFactory() const { return mpSdPropHdlFactory; } + XMLSdPropHdlFactory* GetSdPropHdlFactory() const { return mpSdPropHdlFactory.get(); } const rtl::Reference< XMLTableImport >& GetShapeTableImport(); }; |