From 3631518b9b74ceb476367021853fc9cd111f476e Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Wed, 7 Jan 2015 16:57:55 +0100 Subject: sal_uInt16 to size_t, remove unneeded downcast Change-Id: I48689ad3a974d5bc2386766b55045e4456a0d72c --- sw/source/core/bastyp/swcache.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx index 176f4c4c75f5..aa0a4158b750 100644 --- a/sw/source/core/bastyp/swcache.cxx +++ b/sw/source/core/bastyp/swcache.cxx @@ -95,7 +95,7 @@ SwCache::SwCache( const sal_uInt16 nInitSize , m_nDecreaseMax( 0 ) #endif { - m_aCacheObjects.reserve( (sal_uInt8)nInitSize ); + m_aCacheObjects.reserve( nInitSize ); } SwCache::~SwCache() @@ -304,7 +304,7 @@ void SwCache::DeleteObj( SwCacheObj *pObj ) // Shrink if possible.To do so we need enough free positions. // Unpleasent side effect: positions will be moved and the owner of // 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]; if ( !pTmpObj ) -- cgit