loplugin:loopvartoosmall

Change-Id: Ief96de6eb6f6276681130a6d16c767ab8ceaa3f1
This commit is contained in:
Stephan Bergmann
2017-04-03 15:35:34 +02:00
parent cfdc46a4bc
commit dbaab58c14
2 changed files with 3 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ bool sanityCheckLayoutCache(SwLayCacheImpl const& rCache,
auto const nStartOfContent(rNodes.GetEndOfContent().StartOfSectionNode()->GetIndex());
nNodeIndex -= nStartOfContent;
auto const nMaxIndex(rNodes.GetEndOfContent().GetIndex() - nStartOfContent);
for (sal_uInt16 nIndex = 0; nIndex < rCache.size(); ++nIndex)
for (size_t nIndex = 0; nIndex < rCache.size(); ++nIndex)
{
auto const nBreakIndex(rCache.GetBreakIndex(nIndex));
if (nBreakIndex < nNodeIndex || nMaxIndex <= nBreakIndex)

View File

@@ -66,9 +66,9 @@ public:
bool Read( SvStream& rStream );
sal_uLong GetBreakIndex( sal_uInt16 nIdx ) const { return mIndices[ nIdx ]; }
sal_uLong GetBreakIndex( size_t nIdx ) const { return mIndices[ nIdx ]; }
sal_Int32 GetBreakOfst( size_t nIdx ) const { return aOffset[ nIdx ]; }
sal_uInt16 GetBreakType( sal_uInt16 nIdx ) const { return aType[ nIdx ]; }
sal_uInt16 GetBreakType( size_t nIdx ) const { return aType[ nIdx ]; }
size_t GetFlyCount() const { return m_FlyCache.size(); }
SwFlyCache& GetFlyCache( size_t nIdx ) { return m_FlyCache[ nIdx ]; }