summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 14:56:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 11:00:06 +0200
commit034cb09f56fba58ccc53acb88681e1f0b812156a (patch)
tree5f19b3f2c7a50aca6aecf48b80c070f076d0bb47 /include/xmloff
parent2796150fdcc340be6b3dba19fc9c5734c21e0e6e (diff)
use rtl::Reference in SvXMLExport
instead of storing both a raw pointer and an uno::Reference Change-Id: I83774937d3556b9fed550a7f3e757dc975b4098a
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/xmlexp.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index 96a1ded32f68..7fbcb4196cf4 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -131,8 +131,7 @@ class XMLOFF_DLLPUBLIC SvXMLExport : public cppu::WeakImplHelper<
css::uno::Reference< css::beans::XPropertySet > mxExportInfo;
css::uno::Reference< css::lang::XEventListener > mxEventListener;
- SvXMLAttributeList *mpAttrList; // a common attribute list
- css::uno::Reference< css::xml::sax::XAttributeList > mxAttrList; // and an interface of it
+ rtl::Reference<SvXMLAttributeList> mxAttrList; // a common attribute list
OUString msOrigFileName; // the original URL
OUString msGraphicObjectProtocol;
@@ -377,8 +376,8 @@ public:
css::xml::sax::XAttributeList >& xAttrList );
// Get common attribute list as implementation or interface.
- SvXMLAttributeList &GetAttrList() { return *mpAttrList; }
- const css::uno::Reference< css::xml::sax::XAttributeList > & GetXAttrList() { return mxAttrList; }
+ SvXMLAttributeList &GetAttrList() { return *mxAttrList.get(); }
+ css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() { return mxAttrList.get(); }
// Get document handler. This methods are not const, because the
// reference allowes modifications through the handler.