diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 12:25:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-04 12:51:42 +0200 |
commit | 55f78bcb63e552559ec6a18e39ae982dd925974a (patch) | |
tree | cc0b509a5257959fbfd45febb943eb3f315a42b4 /sw/source/filter/html/htmltabw.cxx | |
parent | 04c5f27e8f904f01b1dbfba2b95ed57a9e439f91 (diff) |
loplugin:useuniqueptr in SwWriteTableCols
Change-Id: Ib4c95401c3e9e60c1c909080b3381d652c862e62
Reviewed-on: https://gerrit.libreoffice.org/61342
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmltabw.cxx')
-rw-r--r-- | sw/source/filter/html/htmltabw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx index d3f76c41adb1..a2e93d6bd9f8 100644 --- a/sw/source/filter/html/htmltabw.cxx +++ b/sw/source/filter/html/htmltabw.cxx @@ -587,10 +587,10 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign, bool bColsHaveBorder = false; bool bColsHaveBorderOnly = true; - SwWriteTableCol *pCol = m_aCols[0]; + SwWriteTableCol *pCol = m_aCols[0].get(); for( SwWriteTableCols::size_type nCol=1; nCol<m_aCols.size(); ++nCol ) { - SwWriteTableCol *pNextCol = m_aCols[nCol]; + SwWriteTableCol *pNextCol = m_aCols[nCol].get(); bool bBorder = ( pCol->bRightBorder || pNextCol->bLeftBorder ); bColsHaveBorder |= bBorder; bColsHaveBorderOnly &= bBorder; @@ -736,7 +736,7 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign, { rWrt.OutNewLine(); // </COL> in new line - const SwWriteTableCol *pColumn = m_aCols[nCol]; + const SwWriteTableCol *pColumn = m_aCols[nCol].get(); HtmlWriter html(rWrt.Strm(), rWrt.maNamespace); html.start(OOO_STRING_SVTOOLS_HTML_col); |