diff options
-rw-r--r-- | include/svl/documentlockfile.hxx | 10 | ||||
-rw-r--r-- | include/svl/nranges.hxx | 6 | ||||
-rw-r--r-- | svl/source/config/itemholder2.cxx | 4 | ||||
-rw-r--r-- | svl/source/items/itempool.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/itemset.cxx | 16 | ||||
-rw-r--r-- | svl/source/items/nranges.cxx | 12 | ||||
-rw-r--r-- | svl/source/items/poolio.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/ptitem.cxx | 4 | ||||
-rw-r--r-- | svl/source/items/srchitem.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/szitem.cxx | 4 | ||||
-rw-r--r-- | svl/source/misc/documentlockfile.cxx | 14 | ||||
-rw-r--r-- | svl/source/misc/inethist.cxx | 8 | ||||
-rw-r--r-- | svl/source/misc/lockfilecommon.cxx | 10 | ||||
-rw-r--r-- | svl/source/misc/sharecontrolfile.cxx | 4 |
14 files changed, 49 insertions, 49 deletions
diff --git a/include/svl/documentlockfile.hxx b/include/svl/documentlockfile.hxx index 437b59fbf127..ec741da2f6bc 100644 --- a/include/svl/documentlockfile.hxx +++ b/include/svl/documentlockfile.hxx @@ -35,7 +35,7 @@ namespace svt { class SVL_DLLPUBLIC DocumentLockFile : public LockFileCommon { // the workaround for automated testing! - static sal_Bool m_bAllowInteraction; + static bool m_bAllowInteraction; ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > OpenStream(); @@ -45,15 +45,15 @@ public: DocumentLockFile( const OUString& aOrigURL ); ~DocumentLockFile(); - sal_Bool CreateOwnLockFile(); + bool CreateOwnLockFile(); ::com::sun::star::uno::Sequence< OUString > GetLockData(); - sal_Bool OverwriteOwnLockFile(); + bool OverwriteOwnLockFile(); void RemoveFile(); // the methods allow to control whether UI interaction regarding the locked document file is allowed // this is a workaround for automated tests - static void AllowInteraction( sal_Bool bAllow ) { m_bAllowInteraction = bAllow; } - static sal_Bool IsInteractionAllowed() { return m_bAllowInteraction; } + static void AllowInteraction( bool bAllow ) { m_bAllowInteraction = bAllow; } + static bool IsInteractionAllowed() { return m_bAllowInteraction; } }; } diff --git a/include/svl/nranges.hxx b/include/svl/nranges.hxx index 364bf59a44f2..993b35e28ea8 100644 --- a/include/svl/nranges.hxx +++ b/include/svl/nranges.hxx @@ -42,8 +42,8 @@ public: ~SfxUShortRanges() { delete [] _pRanges; } - sal_Bool operator == ( const SfxUShortRanges & ) const; - sal_Bool operator != ( const SfxUShortRanges & rRanges ) const + bool operator == ( const SfxUShortRanges & ) const; + bool operator != ( const SfxUShortRanges & rRanges ) const { return !( *this == rRanges ); } SfxUShortRanges& operator = ( const SfxUShortRanges & ); @@ -53,7 +53,7 @@ public: SfxUShortRanges& operator /= ( const SfxUShortRanges & ); sal_uInt16 Count() const; - sal_Bool IsEmpty() const + bool IsEmpty() const { return !_pRanges || 0 == *_pRanges; } operator const sal_uInt16* () const diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx index f2d9f71ec468..6b7b25c28f5f 100644 --- a/svl/source/config/itemholder2.cxx +++ b/svl/source/config/itemholder2.cxx @@ -48,10 +48,10 @@ ItemHolder2::ItemHolder2() #ifdef DBG_UTIL catch(const css::uno::Exception& rEx) { - static sal_Bool bMessage = sal_True; + static bool bMessage = true; if(bMessage) { - bMessage = sal_False; + bMessage = false; OString sMsg("CreateInstance with arguments exception: "); sMsg += OString(rEx.Message.getStr(), rEx.Message.getLength(), 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; diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx index 3e6440f04d46..3f142093417b 100644 --- a/svl/source/misc/documentlockfile.cxx +++ b/svl/source/misc/documentlockfile.cxx @@ -50,7 +50,7 @@ using namespace ::com::sun::star; namespace svt { -sal_Bool DocumentLockFile::m_bAllowInteraction = sal_True; +bool DocumentLockFile::m_bAllowInteraction = true; // ---------------------------------------------------------------------- DocumentLockFile::DocumentLockFile( const OUString& aOrigURL ) @@ -85,7 +85,7 @@ void DocumentLockFile::WriteEntryToStream( uno::Sequence< OUString > aEntry, uno } // ---------------------------------------------------------------------- -sal_Bool DocumentLockFile::CreateOwnLockFile() +bool DocumentLockFile::CreateOwnLockFile() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -125,10 +125,10 @@ sal_Bool DocumentLockFile::CreateOwnLockFile() } catch( ucb::NameClashException& ) { - return sal_False; + return false; } - return sal_True; + return true; } // ---------------------------------------------------------------------- @@ -168,7 +168,7 @@ uno::Reference< io::XInputStream > DocumentLockFile::OpenStream() } // ---------------------------------------------------------------------- -sal_Bool DocumentLockFile::OverwriteOwnLockFile() +bool DocumentLockFile::OverwriteOwnLockFile() { // allows to overwrite the lock file with the current data try @@ -188,10 +188,10 @@ sal_Bool DocumentLockFile::OverwriteOwnLockFile() } catch( uno::Exception& ) { - return sal_False; + return false; } - return sal_True; + return true; } // ---------------------------------------------------------------------- diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index 032f0b169beb..7eb8c6e3a3d8 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -94,20 +94,20 @@ class INetURLHistory_Impl /** Comparison. */ - sal_Bool operator== (const hash_entry &rOther) const + bool operator== (const hash_entry &rOther) const { return (m_nHash == rOther.m_nHash); } - sal_Bool operator< (const hash_entry &rOther) const + bool operator< (const hash_entry &rOther) const { return (m_nHash < rOther.m_nHash); } - sal_Bool operator== (sal_uInt32 nHash) const + bool operator== (sal_uInt32 nHash) const { return (m_nHash == nHash); } - sal_Bool operator< (sal_uInt32 nHash) const + bool operator< (sal_uInt32 nHash) const { return (m_nHash < nHash); } diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx index eb77be2b07c3..3f13e35aad7c 100644 --- a/svl/source/misc/lockfilecommon.cxx +++ b/svl/source/misc/lockfilecommon.cxx @@ -134,8 +134,8 @@ uno::Sequence< OUString > LockFileCommon::ParseEntry( const uno::Sequence< sal_I OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sal_Int32& io_nCurPos ) { OStringBuffer aResult; - sal_Bool bHaveName = sal_False; - sal_Bool bEscape = sal_False; + bool bHaveName = false; + bool bEscape = false; while( !bHaveName ) { @@ -149,15 +149,15 @@ OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sa else throw io::WrongFormatException(); - bEscape = sal_False; + bEscape = false; io_nCurPos++; } else if ( aBuffer[io_nCurPos] == ',' || aBuffer[io_nCurPos] == ';' ) - bHaveName = sal_True; + bHaveName = true; else { if ( aBuffer[io_nCurPos] == '\\' ) - bEscape = sal_True; + bEscape = true; else aResult.append( (sal_Char)aBuffer[io_nCurPos] ); diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx index dd3c5fbf7d7f..49443c868261 100644 --- a/svl/source/misc/sharecontrolfile.cxx +++ b/svl/source/misc/sharecontrolfile.cxx @@ -239,7 +239,7 @@ uno::Sequence< OUString > ShareControlFile::InsertOwnEntry() uno::Sequence< ::uno::Sequence< OUString > > aNewData( m_aUsersData.getLength() + 1 ); uno::Sequence< OUString > aNewEntry = GenerateOwnEntry(); - sal_Bool bExists = sal_False; + bool bExists = false; sal_Int32 nNewInd = 0; for ( sal_Int32 nInd = 0; nInd < m_aUsersData.getLength(); nInd++ ) { @@ -252,7 +252,7 @@ uno::Sequence< OUString > ShareControlFile::InsertOwnEntry() if ( !bExists ) { aNewData[nNewInd] = aNewEntry; - bExists = sal_True; + bExists = true; } } else |