diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-05 10:48:40 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-05 11:26:04 +0000 |
commit | 9c1f700aff5f7e375d3570231e6d68fe2e2c0334 (patch) | |
tree | 0d616e27ab7cf82dd5e28939b984a626adc682e0 /lotuswordpro | |
parent | a5b842f3aa401352f5454edb8f47d9576dff0092 (diff) |
improve refcounting loplugin to check SvRef-based classes
Change-Id: I2b3c8eedabeaecd8dcae9fe69c951353a5686883
Reviewed-on: https://gerrit.libreoffice.org/17521
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'lotuswordpro')
6 files changed, 10 insertions, 10 deletions
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<XFContentContainer> 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<XFContentContainer> 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<XFContentContainer> 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<XFContentContainer> 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<XFContentContainer> m_aHeaderRows; std::map<sal_uInt16, XFRow*> m_aRows; std::map<sal_Int32,OUString> m_aColumns; OUString m_strDefCellStyle; |