summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 16:57:55 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 21:04:35 +0100
commit3631518b9b74ceb476367021853fc9cd111f476e (patch)
tree80d48730b9f8b3149b98c9951cbe6f15226cc464
parent2ad35f36db9195c01fe4ccb428f6d9626fa5060c (diff)
sal_uInt16 to size_t, remove unneeded downcast
Change-Id: I48689ad3a974d5bc2386766b55045e4456a0d72c
-rw-r--r--sw/source/core/bastyp/swcache.cxx4
1 files changed, 2 insertions, 2 deletions
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 )