loplugin:loopvartoosmall
Change-Id: Ief96de6eb6f6276681130a6d16c767ab8ceaa3f1
This commit is contained in:
@@ -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)
|
||||
|
@@ -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 ]; }
|
||||
|
Reference in New Issue
Block a user