summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 16:48:15 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commit49ea2258d482950ad3af16f9c8ac4fef7f192fc0 (patch)
tree4910b89f264f47c378fa7540705ca84f50d91919 /writerfilter
parente0b2e6e3f767240016133dd2d55e0bfb9192ca39 (diff)
loplugin:loopvartoosmall
Change-Id: I5518e40a30bdad53470cc52b59eff04ab6d873d4
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableManager.cxx8
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
index 08cc318dfa6c..9ecf2754749b 100644
--- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx
@@ -626,7 +626,7 @@ void DomainMapperTableManager::endOfRowAction()
// a grid of "20:40:20" and it doesn't have to do something with the tableWidth
// -> so we have get the sum of each grid entry for the fullWidthRelative:
int nFullWidthRelative = 0;
- for (unsigned int i = 0 ; i < (*pTableGrid.get()).size(); i++ )
+ for (size_t i = 0 ; i < (*pTableGrid.get()).size(); i++ )
nFullWidthRelative += (*pTableGrid.get())[ i ];
if( pTableGrid->size() == ( m_nGridBefore + nGrids + m_nGridAfter ) && m_nCell.back( ) > 0 )
@@ -664,7 +664,7 @@ void DomainMapperTableManager::endOfRowAction()
throw o3tl::divide_by_zero();
::std::vector< sal_Int32 >::const_iterator aSpansIter = pCurrentSpans->begin( );
- for( sal_uInt32 nBorder = 0; nBorder < nWidthsBound; ++nBorder )
+ for( size_t nBorder = 0; nBorder < nWidthsBound; ++nBorder )
{
double fGridWidth = 0.;
for ( sal_Int32 nGridCount = *aSpansIter; nGridCount > 0; --nGridCount )
@@ -707,7 +707,7 @@ void DomainMapperTableManager::endOfRowAction()
sal_uInt32 nPos = 0;
// Avoid divide by zero (if there's no grid, position using cell widths).
if( nFullWidthRelative == 0 )
- for (sal_uInt32 i = 0; i < pCellWidths->size(); ++i)
+ for (size_t i = 0; i < pCellWidths->size(); ++i)
nFullWidthRelative += (*pCellWidths.get())[i];
size_t nWidthsBound = pCellWidths->size() - 1;
@@ -716,7 +716,7 @@ void DomainMapperTableManager::endOfRowAction()
if (nFullWidthRelative == 0)
throw o3tl::divide_by_zero();
- for (sal_uInt32 i = 0; i < nWidthsBound; ++i)
+ for (size_t i = 0; i < nWidthsBound; ++i)
{
nSum += (*pCellWidths.get())[i];
pSeparators[nPos].Position = (nSum * 10000) / nFullWidthRelative; // Relative position
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 211d2a0cd49d..a732d0201610 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -1239,7 +1239,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
const StyleSheetEntryPtr StyleSheetTable::FindStyleSheetByISTD(const OUString& sIndex)
{
StyleSheetEntryPtr pRet;
- for( sal_uInt32 nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
+ for( size_t nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
{
if( m_pImpl->m_aStyleSheetEntries[nPos]->sStyleIdentifierD == sIndex)
{
@@ -1254,7 +1254,7 @@ const StyleSheetEntryPtr StyleSheetTable::FindStyleSheetByISTD(const OUString& s
const StyleSheetEntryPtr StyleSheetTable::FindStyleSheetByStyleName(const OUString& sIndex)
{
StyleSheetEntryPtr pRet;
- for( sal_uInt32 nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
+ for( size_t nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
{
if( m_pImpl->m_aStyleSheetEntries[nPos]->sStyleName == sIndex)
{
@@ -1269,7 +1269,7 @@ const StyleSheetEntryPtr StyleSheetTable::FindStyleSheetByStyleName(const OUStri
const StyleSheetEntryPtr StyleSheetTable::FindStyleSheetByConvertedStyleName(const OUString& sIndex)
{
StyleSheetEntryPtr pRet;
- for( sal_uInt32 nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
+ for( size_t nPos = 0; nPos < m_pImpl->m_aStyleSheetEntries.size(); ++nPos )
{
if( m_pImpl->m_aStyleSheetEntries[nPos]->sConvertedStyleName == sIndex)
{