Kaydet (Commit) 3631518b authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to size_t, remove unneeded downcast

Change-Id: I48689ad3a974d5bc2386766b55045e4456a0d72c
üst 2ad35f36
...@@ -95,7 +95,7 @@ SwCache::SwCache( const sal_uInt16 nInitSize ...@@ -95,7 +95,7 @@ SwCache::SwCache( const sal_uInt16 nInitSize
, m_nDecreaseMax( 0 ) , m_nDecreaseMax( 0 )
#endif #endif
{ {
m_aCacheObjects.reserve( (sal_uInt8)nInitSize ); m_aCacheObjects.reserve( nInitSize );
} }
SwCache::~SwCache() SwCache::~SwCache()
...@@ -304,7 +304,7 @@ void SwCache::DeleteObj( SwCacheObj *pObj ) ...@@ -304,7 +304,7 @@ void SwCache::DeleteObj( SwCacheObj *pObj )
// Shrink if possible.To do so we need enough free positions. // Shrink if possible.To do so we need enough free positions.
// Unpleasent side effect: positions will be moved and the owner of // Unpleasent side effect: positions will be moved and the owner of
// these might not find them afterwards // these might not find them afterwards
for ( sal_uInt16 i = 0; i < m_aCacheObjects.size(); ++i ) for ( size_t i = 0; i < m_aCacheObjects.size(); ++i )
{ {
SwCacheObj *pTmpObj = m_aCacheObjects[i]; SwCacheObj *pTmpObj = m_aCacheObjects[i];
if ( !pTmpObj ) if ( !pTmpObj )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment