summaryrefslogtreecommitdiff
path: root/sw/source/core/bastyp/swcache.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-25 14:00:35 +0200
committerNoel Grandin <noel@peralex.com>2014-04-30 08:44:42 +0200
commit6aa35db39311dcd7965c9c9c21fcf4143a1f9b43 (patch)
tree04320eaf8c7481c1b496460624ee20ec11360ac2 /sw/source/core/bastyp/swcache.cxx
parent1417061d1b2c110e7e690523a544b58e7ffd05c0 (diff)
sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
Diffstat (limited to 'sw/source/core/bastyp/swcache.cxx')
-rw-r--r--sw/source/core/bastyp/swcache.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/bastyp/swcache.cxx b/sw/source/core/bastyp/swcache.cxx
index f0cb3564022a..7b2d4e205fc9 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -224,7 +224,7 @@ void SwCache::ToTop( SwCacheObj *pObj )
}
SwCacheObj *SwCache::Get( const void *pOwner, const sal_uInt16 nIndex,
- const sal_Bool bToTop )
+ const bool bToTop )
{
SwCacheObj *pRet;
if ( 0 != (pRet = (nIndex < m_aCacheObjects.size()) ? m_aCacheObjects[ nIndex ] : 0) )
@@ -245,7 +245,7 @@ SwCacheObj *SwCache::Get( const void *pOwner, const sal_uInt16 nIndex,
return pRet;
}
-SwCacheObj *SwCache::Get( const void *pOwner, const sal_Bool bToTop )
+SwCacheObj *SwCache::Get( const void *pOwner, const bool bToTop )
{
SwCacheObj *pRet = pRealFirst;
while ( pRet && !pRet->IsOwner( pOwner ) )
@@ -322,11 +322,11 @@ void SwCache::Delete( const void *pOwner )
{
INCREMENT( m_nDelete );
SwCacheObj *pObj;
- if ( 0 != (pObj = Get( pOwner, sal_Bool(sal_False) )) )
+ if ( 0 != (pObj = Get( pOwner, false )) )
DeleteObj( pObj );
}
-sal_Bool SwCache::Insert( SwCacheObj *pNew )
+bool SwCache::Insert( SwCacheObj *pNew )
{
CHECK;
OSL_ENSURE( !pNew->GetPrev() && !pNew->GetNext(), "New but not new." );
@@ -359,7 +359,7 @@ sal_Bool SwCache::Insert( SwCacheObj *pNew )
if ( !pObj )
{
OSL_FAIL( "Cache overflow." );
- return sal_False;
+ return false;
}
nPos = pObj->GetCachePos();
@@ -398,7 +398,7 @@ sal_Bool SwCache::Insert( SwCacheObj *pNew )
pFirst = pNew;
CHECK;
- return sal_True;
+ return true;
}
void SwCache::SetLRUOfst( const sal_uInt16 nOfst )