[Libreoffice-commits] core.git: writerfilter/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Sep 1 04:18:15 UTC 2018
writerfilter/source/dmapper/TDefTableHandler.cxx | 27 ++++++++---------
writerfilter/source/dmapper/TDefTableHandler.hxx | 2 -
writerfilter/source/dmapper/TablePropertiesHandler.cxx | 2 -
3 files changed, 15 insertions(+), 16 deletions(-)
New commits:
commit 4ea9efb492484da7763d25ce09c92ab1c6beb587
Author: Justin Luth <justin.luth at collabora.com>
AuthorDate: Mon Aug 27 19:53:36 2018 +0300
Commit: Justin Luth <justin_luth at sil.org>
CommitDate: Sat Sep 1 06:17:54 2018 +0200
remove single-value variable: nCell
pulled in from OOo project as a single call being passed nCell = 0.
Change-Id: I90899e9b5270d809dbdc37915a5ec31fc43f1f22
Reviewed-on: https://gerrit.libreoffice.org/59673
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth at sil.org>
diff --git a/writerfilter/source/dmapper/TDefTableHandler.cxx b/writerfilter/source/dmapper/TDefTableHandler.cxx
index 1a29fbc4b6b2..0658a9f8c128 100644
--- a/writerfilter/source/dmapper/TDefTableHandler.cxx
+++ b/writerfilter/source/dmapper/TDefTableHandler.cxx
@@ -413,21 +413,20 @@ void TDefTableHandler::lcl_sprm(Sprm & rSprm)
}
}
-void TDefTableHandler::fillCellProperties(
- size_t nCell, const ::tools::SvRef< TablePropertyMap >& pCellProperties ) const
+void TDefTableHandler::fillCellProperties( const ::tools::SvRef< TablePropertyMap >& pCellProperties ) const
{
- if( m_aTopBorderLines.size() > nCell )
- pCellProperties->Insert( PROP_TOP_BORDER, uno::makeAny( m_aTopBorderLines[nCell] ) );
- if( m_aLeftBorderLines.size() > nCell )
- pCellProperties->Insert( PROP_LEFT_BORDER, uno::makeAny( m_aLeftBorderLines[nCell] ) );
- if( m_aBottomBorderLines.size() > nCell )
- pCellProperties->Insert( PROP_BOTTOM_BORDER, uno::makeAny( m_aBottomBorderLines[nCell] ) );
- if( m_aRightBorderLines.size() > nCell )
- pCellProperties->Insert( PROP_RIGHT_BORDER, uno::makeAny( m_aRightBorderLines[nCell] ) );
- if( m_aInsideHBorderLines.size() > nCell )
- pCellProperties->Insert( META_PROP_HORIZONTAL_BORDER, uno::makeAny( m_aInsideHBorderLines[nCell] ) );
- if( m_aInsideVBorderLines.size() > nCell )
- pCellProperties->Insert( META_PROP_VERTICAL_BORDER, uno::makeAny( m_aInsideVBorderLines[nCell] ) );
+ if( m_aTopBorderLines.size() )
+ pCellProperties->Insert( PROP_TOP_BORDER, uno::makeAny( m_aTopBorderLines[0] ) );
+ if( m_aLeftBorderLines.size() )
+ pCellProperties->Insert( PROP_LEFT_BORDER, uno::makeAny( m_aLeftBorderLines[0] ) );
+ if( m_aBottomBorderLines.size() )
+ pCellProperties->Insert( PROP_BOTTOM_BORDER, uno::makeAny( m_aBottomBorderLines[0] ) );
+ if( m_aRightBorderLines.size() )
+ pCellProperties->Insert( PROP_RIGHT_BORDER, uno::makeAny( m_aRightBorderLines[0] ) );
+ if( m_aInsideHBorderLines.size() )
+ pCellProperties->Insert( META_PROP_HORIZONTAL_BORDER, uno::makeAny( m_aInsideHBorderLines[0] ) );
+ if( m_aInsideVBorderLines.size() )
+ pCellProperties->Insert( META_PROP_VERTICAL_BORDER, uno::makeAny( m_aInsideVBorderLines[0] ) );
}
diff --git a/writerfilter/source/dmapper/TDefTableHandler.hxx b/writerfilter/source/dmapper/TDefTableHandler.hxx
index 09ef72e8320d..76b3e60b0e85 100644
--- a/writerfilter/source/dmapper/TDefTableHandler.hxx
+++ b/writerfilter/source/dmapper/TDefTableHandler.hxx
@@ -64,7 +64,7 @@ public:
TDefTableHandler();
virtual ~TDefTableHandler() override;
- void fillCellProperties( size_t nCell, const ::tools::SvRef< TablePropertyMap >& pCellProperties) const;
+ void fillCellProperties( const ::tools::SvRef< TablePropertyMap >& pCellProperties) const;
void enableInteropGrabBag(const OUString& aName);
css::beans::PropertyValue getInteropGrabBag(const OUString& aName = OUString());
static OUString getBorderTypeString(sal_Int32 nType);
diff --git a/writerfilter/source/dmapper/TablePropertiesHandler.cxx b/writerfilter/source/dmapper/TablePropertiesHandler.cxx
index b109c36f10b3..2343361cfc1c 100644
--- a/writerfilter/source/dmapper/TablePropertiesHandler.cxx
+++ b/writerfilter/source/dmapper/TablePropertiesHandler.cxx
@@ -243,7 +243,7 @@ namespace dmapper {
if (m_pCurrentInteropGrabBag)
m_pCurrentInteropGrabBag->push_back(pTDefTableHandler->getInteropGrabBag());
TablePropertyMapPtr pCellPropMap( new TablePropertyMap );
- pTDefTableHandler->fillCellProperties( 0, pCellPropMap );
+ pTDefTableHandler->fillCellProperties( pCellPropMap );
cellProps( pCellPropMap );
}
}
More information about the Libreoffice-commits
mailing list