include/svl/documentlockfile.hxx     |   10 +++++-----
 include/svl/nranges.hxx              |    6 +++---
 svl/source/config/itemholder2.cxx    |    4 ++--
 svl/source/items/itempool.cxx        |    2 +-
 svl/source/items/itemset.cxx         |   16 ++++++++--------
 svl/source/items/nranges.cxx         |   12 ++++++------
 svl/source/items/poolio.cxx          |    2 +-
 svl/source/items/ptitem.cxx          |    4 ++--
 svl/source/items/srchitem.cxx        |    2 +-
 svl/source/items/szitem.cxx          |    4 ++--
 svl/source/misc/documentlockfile.cxx |   14 +++++++-------
 svl/source/misc/inethist.cxx         |    8 ++++----
 svl/source/misc/lockfilecommon.cxx   |   10 +++++-----
 svl/source/misc/sharecontrolfile.cxx |    4 ++--
 14 files changed, 49 insertions(+), 49 deletions(-)

New commits:
commit 9d97a2af7cd4d51fbf4dc3027f82cb6c7fc8328d
Author: Takeshi Abe <t...@fixedpoint.jp>
Date:   Thu Apr 25 15:00:54 2013 +0900

    sal_Bool to bool
    
    Change-Id: I7dcb2dcef78c67d90ff2dea58c1374bd17ac58af

diff --git a/include/svl/documentlockfile.hxx b/include/svl/documentlockfile.hxx
index 437b59f..ec741da 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 364bf59..993b35e 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 f2d9f71..6b7b25c 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 89a6618..29e1c65 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 aaebeb8..de2e1ae 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 69ae5d7..0b1f74a 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 76ce008..e0bed0a 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 811a3d6..b62b880 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 e3212da..f094b53 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 2506023..cf7249a 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 3e6440f..3f14209 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 032f0b1..7eb8c6e 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 eb77be2..3f13e35 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 dd3c5fb..49443c8 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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to