From 9c1f700aff5f7e375d3570231e6d68fe2e2c0334 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Aug 2015 10:48:40 +0200 Subject: improve refcounting loplugin to check SvRef-based classes Change-Id: I2b3c8eedabeaecd8dcae9fe69c951353a5686883 Reviewed-on: https://gerrit.libreoffice.org/17521 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lotuswordpro/source/filter/xfilter/xfdrawgroup.hxx | 6 +++--- lotuswordpro/source/filter/xfilter/xfdrawobj.hxx | 2 +- lotuswordpro/source/filter/xfilter/xfendnote.hxx | 2 +- lotuswordpro/source/filter/xfilter/xfheader.hxx | 2 +- lotuswordpro/source/filter/xfilter/xftable.cxx | 6 +++--- lotuswordpro/source/filter/xfilter/xftable.hxx | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/xfilter/xfdrawgroup.hxx b/lotuswordpro/source/filter/xfilter/xfdrawgroup.hxx index d97ae140fa43..722fce1c2a72 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawgroup.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawgroup.hxx @@ -87,13 +87,13 @@ public: virtual void ToXml(IXFStream *pStrm) SAL_OVERRIDE; private: - XFContentContainer m_aChildren; + rtl::Reference m_aChildren; }; inline void XFDrawGroup::Add(XFFrame *pFrame) { if( pFrame ) - m_aChildren.Add(pFrame); + m_aChildren->Add(pFrame); } inline void XFDrawGroup::ToXml(IXFStream *pStrm) @@ -105,7 +105,7 @@ inline void XFDrawGroup::ToXml(IXFStream *pStrm) pStrm->StartElement( "draw:g" ); - m_aChildren.ToXml(pStrm); + m_aChildren->ToXml(pStrm); pStrm->EndElement( "draw:g" ); diff --git a/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx b/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx index 32e32c6977e2..d273a5378249 100644 --- a/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx +++ b/lotuswordpro/source/filter/xfilter/xfdrawobj.hxx @@ -98,7 +98,7 @@ public: virtual void ToXml(IXFStream *pStrm) SAL_OVERRIDE; protected: - XFContentContainer m_aContents; + rtl::Reference m_aContents; OUString m_strTextStyle; double m_fRotate; XFPoint m_aRotatePoint; diff --git a/lotuswordpro/source/filter/xfilter/xfendnote.hxx b/lotuswordpro/source/filter/xfilter/xfendnote.hxx index 78243ec61922..1626d2bcbea2 100644 --- a/lotuswordpro/source/filter/xfilter/xfendnote.hxx +++ b/lotuswordpro/source/filter/xfilter/xfendnote.hxx @@ -79,7 +79,7 @@ public: private: OUString m_strID; OUString m_strLabel; - XFContentContainer m_aContents; + rtl::Reference m_aContents; }; inline XFEndNote::XFEndNote() diff --git a/lotuswordpro/source/filter/xfilter/xfheader.hxx b/lotuswordpro/source/filter/xfilter/xfheader.hxx index 9a4773a9d07c..5fc150c05441 100644 --- a/lotuswordpro/source/filter/xfilter/xfheader.hxx +++ b/lotuswordpro/source/filter/xfilter/xfheader.hxx @@ -81,7 +81,7 @@ public: pStrm->EndElement( "style:header" ); } private: - XFContentContainer m_aContents; + rtl::Reference m_aContents; }; #endif diff --git a/lotuswordpro/source/filter/xfilter/xftable.cxx b/lotuswordpro/source/filter/xfilter/xftable.cxx index f9576f032593..13d51934bd64 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.cxx +++ b/lotuswordpro/source/filter/xfilter/xftable.cxx @@ -108,7 +108,7 @@ void XFTable::AddHeaderRow(XFRow *pRow) { if( !pRow ) return; - m_aHeaderRows.Add(pRow); + m_aHeaderRows->Add(pRow); } OUString XFTable::GetTableName() @@ -207,10 +207,10 @@ void XFTable::ToXml(IXFStream *pStrm) } } - if( m_aHeaderRows.GetCount()>0 ) + if( m_aHeaderRows->GetCount()>0 ) { pStrm->StartElement( "table:table-header-rows" ); - m_aHeaderRows.ToXml(pStrm); + m_aHeaderRows->ToXml(pStrm); pStrm->EndElement( "table:table-header-rows" ); } //output rows: diff --git a/lotuswordpro/source/filter/xfilter/xftable.hxx b/lotuswordpro/source/filter/xfilter/xftable.hxx index 844d685966f2..e5caaa3b4320 100644 --- a/lotuswordpro/source/filter/xfilter/xftable.hxx +++ b/lotuswordpro/source/filter/xfilter/xftable.hxx @@ -109,7 +109,7 @@ private: OUString m_strName; bool m_bSubTable; XFCell *m_pOwnerCell; - XFContentContainer m_aHeaderRows; + rtl::Reference m_aHeaderRows; std::map m_aRows; std::map m_aColumns; OUString m_strDefCellStyle; -- cgit