diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-09 10:24:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-09 10:24:24 +0200 |
commit | d4b0ab2214425545aac5d98c49dc320ee39d6dc2 (patch) | |
tree | d56c6683cd059d4da65fed75b3fb72b1310e6ad5 /xmloff/source/style | |
parent | b3c72c734087b178cbcf1622e1088335c6eaf6a7 (diff) |
loplugin:refcounting
Change-Id: I3ab5f1df08670fdad3e31aadafd3a02f1925dd88
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/style/xmltabi.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index bfec98025425..dbe28d7ccbae 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -1047,7 +1047,7 @@ SvXMLImportContext *SvxXMLListStyleContext::CreateChildContext( IsXMLToken( rLocalName, XML_LIST_LEVEL_STYLE_BULLET ) || IsXMLToken( rLocalName, XML_LIST_LEVEL_STYLE_IMAGE ) ) ) ) { - uno::Reference<SvxXMLListLevelStyleContext_Impl> xLevelStyle{ + rtl::Reference<SvxXMLListLevelStyleContext_Impl> xLevelStyle{ new SvxXMLListLevelStyleContext_Impl( GetImport(), nPrefix, rLocalName, xAttrList )}; if( !pLevelStyles ) diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index a77496a83e2e..a7b861e74dd5 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -207,7 +207,7 @@ class SvXMLStyleIndex_Impl { OUString sName; sal_uInt16 nFamily; - const uno::Reference<SvXMLStyleContext> mxStyle; + const rtl::Reference<SvXMLStyleContext> mxStyle; public: @@ -217,7 +217,7 @@ public: { } - SvXMLStyleIndex_Impl( const uno::Reference<SvXMLStyleContext> &rStl ) : + SvXMLStyleIndex_Impl( const rtl::Reference<SvXMLStyleContext> &rStl ) : sName( rStl->GetName() ), nFamily( rStl->GetFamily() ), mxStyle ( rStl ) @@ -248,7 +248,7 @@ struct SvXMLStyleIndexCmp_Impl class SvXMLStylesContext_Impl { - typedef std::vector<uno::Reference<SvXMLStyleContext>> StylesType; + typedef std::vector<rtl::Reference<SvXMLStyleContext>> StylesType; typedef std::set<SvXMLStyleIndex_Impl, SvXMLStyleIndexCmp_Impl> IndicesType; StylesType aStyles; diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx index 33382e921625..5aa1091e8b31 100644 --- a/xmloff/source/style/xmltabi.cxx +++ b/xmloff/source/style/xmltabi.cxx @@ -187,7 +187,7 @@ SvXMLImportContext *SvxXMLTabStopImportContext::CreateChildContext( if( XML_NAMESPACE_STYLE == nPrefix && IsXMLToken( rLocalName, XML_TAB_STOP ) ) { // create new tabstop import context - const uno::Reference<SvxXMLTabStopContext_Impl> xTabStopContext{ + const rtl::Reference<SvxXMLTabStopContext_Impl> xTabStopContext{ new SvxXMLTabStopContext_Impl( GetImport(), nPrefix, rLocalName, xAttrList )}; |