summaryrefslogtreecommitdiff
path: root/svl/source/items
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-04-25 15:00:54 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-04-26 09:28:38 +0900
commit9d97a2af7cd4d51fbf4dc3027f82cb6c7fc8328d (patch)
treebf87fbc10acafa39f0bcac587de4a6d10eaf7fdd /svl/source/items
parent52b618e196f25c9b4c8a20064e2c97e6d5c82368 (diff)
sal_Bool to bool
Change-Id: I7dcb2dcef78c67d90ff2dea58c1374bd17ac58af
Diffstat (limited to 'svl/source/items')
-rw-r--r--svl/source/items/itempool.cxx2
-rw-r--r--svl/source/items/itemset.cxx16
-rw-r--r--svl/source/items/nranges.cxx12
-rw-r--r--svl/source/items/poolio.cxx2
-rw-r--r--svl/source/items/ptitem.cxx4
-rw-r--r--svl/source/items/srchitem.cxx2
-rw-r--r--svl/source/items/szitem.cxx4
7 files changed, 21 insertions, 21 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 89a661858167..29e1c65b96a5 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -394,7 +394,7 @@ void SfxItemPool::SetSecondaryPool( SfxItemPool *pPool )
if ( !pImp->maPoolItems.empty() && !pImp->mpSecondary->pImp->maPoolItems.empty() )
{
// hat der master SetItems?
- sal_Bool bHasSetItems = sal_False;
+ bool bHasSetItems = false;
for ( sal_uInt16 i = 0; !bHasSetItems && i < pImp->mnEnd - pImp->mnStart; ++i )
bHasSetItems = pImp->ppStaticDefaults[i]->ISA(SfxSetItem);
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index aaebeb8deaad..de2e1ae514e5 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -1059,7 +1059,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
}
// teste mal, ob sich die Which-Bereiche unterscheiden.
- sal_Bool bEqual = sal_True;
+ bool bEqual = true;
sal_uInt16* pWh1 = _pWhichRanges;
sal_uInt16* pWh2 = rSet._pWhichRanges;
sal_uInt16 nSize = 0;
@@ -1068,7 +1068,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
{
if( *pWh1 != *pWh2 )
{
- bEqual = sal_False;
+ bEqual = false;
break;
}
if( n & 1 )
@@ -1130,7 +1130,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
return;
// teste mal, ob sich die Which-Bereiche unterscheiden.
- sal_Bool bEqual = sal_True;
+ bool bEqual = true;
sal_uInt16* pWh1 = _pWhichRanges;
sal_uInt16* pWh2 = rSet._pWhichRanges;
sal_uInt16 nSize = 0;
@@ -1139,7 +1139,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
{
if( *pWh1 != *pWh2 )
{
- bEqual = sal_False;
+ bEqual = false;
break;
}
if( n & 1 )
@@ -1347,7 +1347,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults )
DBG_ASSERT( GetPool() == rSet.GetPool(), "MergeValues mit verschiedenen Pools" );
// teste mal, ob sich die Which-Bereiche unterscheiden.
- sal_Bool bEqual = sal_True;
+ bool bEqual = true;
sal_uInt16* pWh1 = _pWhichRanges;
sal_uInt16* pWh2 = rSet._pWhichRanges;
sal_uInt16 nSize = 0;
@@ -1356,7 +1356,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults )
{
if( *pWh1 != *pWh2 )
{
- bEqual = sal_False;
+ bEqual = false;
break;
}
if( n & 1 )
@@ -1964,13 +1964,13 @@ const SfxPoolItem* SfxAllItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhi
const SfxPoolItem& rNew = _pPool->Put( rItem, nWhich );
// altes Item merken
- sal_Bool bIncrementCount = sal_False;
+ bool bIncrementCount = false;
const SfxPoolItem* pOld = *( _aItems + nPos );
if ( reinterpret_cast< SfxPoolItem* >( -1 ) == pOld ) // state "dontcare"
pOld = NULL;
if ( !pOld )
{
- bIncrementCount = sal_True;
+ bIncrementCount = true;
pOld = _pParent ?
&_pParent->Get( nWhich, sal_True )
: nWhich <= SFX_WHICH_MAX ? &_pPool->GetDefaultItem( nWhich ) : 0;
diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx
index 69ae5d75048d..0b1f74ae7a46 100644
--- a/svl/source/items/nranges.cxx
+++ b/svl/source/items/nranges.cxx
@@ -201,20 +201,20 @@ SfxUShortRanges::SfxUShortRanges( const sal_uInt16* pArr )
//------------------------------------------------------------------------
-sal_Bool SfxUShortRanges::operator==( const SfxUShortRanges &rOther ) const
+bool SfxUShortRanges::operator==( const SfxUShortRanges &rOther ) const
{
// Object pointers equal?
if ( this == &rOther )
- return sal_True;
+ return true;
// Ranges pointers equal?
if ( _pRanges == rOther._pRanges )
- return sal_True;
+ return true;
// Counts equal?
sal_uInt16 nCount = Count();
if ( nCount != rOther.Count() )
- return sal_False;
+ return false;
// Check arrays.
sal_uInt16 n = 0;
@@ -222,12 +222,12 @@ sal_Bool SfxUShortRanges::operator==( const SfxUShortRanges &rOther ) const
{
// Elements at current position equal?
if ( _pRanges[ n ] != rOther._pRanges[ n ] )
- return sal_False;
+ return false;
++n;
}
- return sal_True;
+ return true;
}
//------------------------------------------------------------------------
diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx
index 76ce00819a6d..e0bed0a56ef3 100644
--- a/svl/source/items/poolio.cxx
+++ b/svl/source/items/poolio.cxx
@@ -1544,7 +1544,7 @@ const SfxPoolItem* SfxItemPool::LoadItem( SvStream &rStream, bool bDirect,
sal_uInt16 nWhich(0), nSlot(0); // nSurrogate;
rStream >> nWhich >> nSlot;
- sal_Bool bDontPut = (SfxItemPool*)-1 == pRefPool;
+ bool bDontPut = (SfxItemPool*)-1 == pRefPool;
if ( bDontPut || !pRefPool )
pRefPool = this;
diff --git a/svl/source/items/ptitem.cxx b/svl/source/items/ptitem.cxx
index 811a3d69e05b..b62b88054c69 100644
--- a/svl/source/items/ptitem.cxx
+++ b/svl/source/items/ptitem.cxx
@@ -120,7 +120,7 @@ SvStream& SfxPointItem::Store(SvStream &rStream, sal_uInt16 ) const
bool SfxPointItem::QueryValue( uno::Any& rVal,
sal_uInt8 nMemberId ) const
{
- sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
+ bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
awt::Point aTmp(aVal.X(), aVal.Y());
if( bConvert )
{
@@ -144,7 +144,7 @@ bool SfxPointItem::QueryValue( uno::Any& rVal,
bool SfxPointItem::PutValue( const uno::Any& rVal,
sal_uInt8 nMemberId )
{
- sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
+ bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
bool bRet = false;
awt::Point aValue;
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index e3212da4f9f8..f094b5376d48 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -220,7 +220,7 @@ SfxPoolItem* SvxSearchItem::Clone( SfxItemPool *) const
// -----------------------------------------------------------------------
//! used below
-static sal_Bool operator == ( const SearchOptions& rItem1, const SearchOptions& rItem2 )
+static bool operator == ( const SearchOptions& rItem1, const SearchOptions& rItem2 )
{
return rItem1.algorithmType == rItem2.algorithmType &&
rItem1.searchFlag == rItem2.searchFlag &&
diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx
index 25060234a578..cf7249ab6603 100644
--- a/svl/source/items/szitem.cxx
+++ b/svl/source/items/szitem.cxx
@@ -115,7 +115,7 @@ SvStream& SfxSizeItem::Store(SvStream &rStream, sal_uInt16 ) const
bool SfxSizeItem::QueryValue( com::sun::star::uno::Any& rVal,
sal_uInt8 nMemberId ) const
{
- sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
+ bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
Size aTmp(aVal);
@@ -146,7 +146,7 @@ bool SfxSizeItem::QueryValue( com::sun::star::uno::Any& rVal,
bool SfxSizeItem::PutValue( const com::sun::star::uno::Any& rVal,
sal_uInt8 nMemberId )
{
- sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
+ bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
nMemberId &= ~CONVERT_TWIPS;
bool bRet = false;