diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-15 20:00:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 07:52:11 +0100 |
commit | 51558d2215a4cf881e357eda7da20688ac61e780 (patch) | |
tree | a9e57dd8d2d3dc103fcb42b3493b1c18333f2d70 /lotuswordpro | |
parent | 99bc040b134c8cece576196fb338954ced7c0f24 (diff) |
loplugin:referencecasting in hwpfilter..lotuswordpro
Change-Id: Ib4a1ae456c44638386425e690a089360e991b26c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110949
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwppara.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 6 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfsaxattrlist.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index 7788132793ff..4d6829cccf8a 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -213,7 +213,7 @@ void LwpPara::XFConvert(XFContentContainer* pCont) rtl::Reference<XFSection> xSection(CreateXFSection()); if (pStory) pStory->AddXFContent(xSection.get()); - m_xXFContainer.set(xSection.get()); + m_xXFContainer = xSection; } if (m_bHasBullet && m_pSilverBullet) diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index f49c3f01dc68..4f2c4c8d30ca 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -856,7 +856,7 @@ sal_uInt16 LwpTableLayout::ConvertHeadingRow( sal_uInt8 nCol = static_cast<sal_uInt8>(pTable->GetColumn()); rtl::Reference<XFTable> pTmpTable( new XFTable ); - ConvertTable(pTmpTable.get(),nStartHeadRow,nEndHeadRow,0,nCol); + ConvertTable(pTmpTable,nStartHeadRow,nEndHeadRow,0,nCol); sal_uInt16 nRowNum = pTmpTable->GetRowCount(); std::vector<sal_uInt8> CellMark(nRowNum); @@ -957,7 +957,7 @@ void LwpTableLayout::SplitRowToCells(XFTable* pTmpTable, rtl::Reference<XFTable> } xSubTable1->AddRow(xNewRow); } - ConvertColumn(xSubTable1.get(), 0, nFirstColSpann);//add column info + ConvertColumn(xSubTable1, 0, nFirstColSpann);//add column info xXFCell1->Add(xSubTable1.get()); xXFCell1->SetColumnSpaned(nFirstColSpann); @@ -976,7 +976,7 @@ void LwpTableLayout::SplitRowToCells(XFTable* pTmpTable, rtl::Reference<XFTable> xSubTable2->AddRow(xNewRow); } - ConvertColumn(xSubTable2.get(), nFirstColSpann, nCol);//add column info + ConvertColumn(xSubTable2, nFirstColSpann, nCol);//add column info xXFCell2->Add(xSubTable2.get()); xXFCell2->SetColumnSpaned(nCol-nFirstColSpann); xXFRow->AddCell(xXFCell2); diff --git a/lotuswordpro/source/filter/xfilter/xfsaxattrlist.cxx b/lotuswordpro/source/filter/xfilter/xfsaxattrlist.cxx index 6a12bcfc6925..aa175d8490ff 100644 --- a/lotuswordpro/source/filter/xfilter/xfsaxattrlist.cxx +++ b/lotuswordpro/source/filter/xfilter/xfsaxattrlist.cxx @@ -76,7 +76,7 @@ void XFSaxAttrList::Clear() { m_xSvAttrList->Clear(); } css::uno::Reference<css::xml::sax::XAttributeList> XFSaxAttrList::GetAttributeList() const { - return m_xSvAttrList.get(); + return m_xSvAttrList; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |