summaryrefslogtreecommitdiff
path: root/comphelper/source/misc
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r--comphelper/source/misc/SelectionMultiplex.cxx8
-rw-r--r--comphelper/source/misc/accessiblecomponenthelper.cxx2
-rw-r--r--comphelper/source/misc/accessiblecontexthelper.cxx2
-rw-r--r--comphelper/source/misc/accessibleeventnotifier.cxx2
-rw-r--r--comphelper/source/misc/accessibleselectionhelper.cxx2
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx20
-rw-r--r--comphelper/source/misc/accessiblewrapper.cxx10
-rw-r--r--comphelper/source/misc/accimplaccess.cxx2
-rw-r--r--comphelper/source/misc/configurationhelper.cxx4
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx6
-rw-r--r--comphelper/source/misc/docpasswordrequest.cxx24
-rw-r--r--comphelper/source/misc/documentiologring.cxx12
-rw-r--r--comphelper/source/misc/documentiologring.hxx4
-rw-r--r--comphelper/source/misc/instancelocker.cxx22
-rw-r--r--comphelper/source/misc/instancelocker.hxx10
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx22
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx10
-rw-r--r--comphelper/source/misc/officerestartmanager.hxx8
-rw-r--r--comphelper/source/misc/sequence.cxx2
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx10
-rw-r--r--comphelper/source/misc/stillreadwriteinteraction.cxx24
-rw-r--r--comphelper/source/misc/storagehelper.cxx30
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx42
-rw-r--r--comphelper/source/misc/types.cxx34
24 files changed, 156 insertions, 156 deletions
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx
index d4cca73a7da0..e5daf792d2b7 100644
--- a/comphelper/source/misc/SelectionMultiplex.cxx
+++ b/comphelper/source/misc/SelectionMultiplex.cxx
@@ -68,11 +68,11 @@ void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter)
//= OSelectionChangeMultiplexer
//========================================================================
//------------------------------------------------------------------
-OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, sal_Bool _bAutoReleaseSet)
+OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, bool _bAutoReleaseSet)
:m_xSet(_rxSet)
,m_pListener(_pListener)
,m_nLockCount(0)
- ,m_bListening(sal_False)
+ ,m_bListening(false)
,m_bAutoSetRelease(_bAutoReleaseSet)
{
m_pListener->setAdapter(this);
@@ -113,7 +113,7 @@ void OSelectionChangeMultiplexer::dispose()
m_pListener->setAdapter(NULL);
m_pListener = NULL;
- m_bListening = sal_False;
+ m_bListening = false;
if (m_bAutoSetRelease)
m_xSet = NULL;
@@ -135,7 +135,7 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour
}
m_pListener = NULL;
- m_bListening = sal_False;
+ m_bListening = false;
if (m_bAutoSetRelease)
m_xSet = NULL;
diff --git a/comphelper/source/misc/accessiblecomponenthelper.cxx b/comphelper/source/misc/accessiblecomponenthelper.cxx
index 816b24b30f3f..2fdaf84f12a6 100644
--- a/comphelper/source/misc/accessiblecomponenthelper.cxx
+++ b/comphelper/source/misc/accessiblecomponenthelper.cxx
@@ -44,7 +44,7 @@ namespace comphelper
}
//--------------------------------------------------------------------
- sal_Bool SAL_CALL OCommonAccessibleComponent::containsPoint( const Point& _rPoint ) throw (RuntimeException)
+ bool SAL_CALL OCommonAccessibleComponent::containsPoint( const Point& _rPoint ) throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
Rectangle aBounds( implGetBounds() );
diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx
index 3b7836377698..f4d9df56bc86 100644
--- a/comphelper/source/misc/accessiblecontexthelper.cxx
+++ b/comphelper/source/misc/accessiblecontexthelper.cxx
@@ -196,7 +196,7 @@ namespace comphelper
}
//---------------------------------------------------------------------
- sal_Bool OAccessibleContextHelper::isAlive() const
+ bool OAccessibleContextHelper::isAlive() const
{
return !GetBroadcastHelper().bDisposed && !GetBroadcastHelper().bInDispose;
}
diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx
index c46d54a33420..be60fe3d9824 100644
--- a/comphelper/source/misc/accessibleeventnotifier.cxx
+++ b/comphelper/source/misc/accessibleeventnotifier.cxx
@@ -128,7 +128,7 @@ namespace
<TRUE/> if and only if the client could be found and
<arg>rPos</arg> has been filled with it's position
*/
- static sal_Bool implLookupClient(
+ static bool implLookupClient(
const AccessibleEventNotifier::TClientId nClient,
ClientMap::iterator& rPos )
{
diff --git a/comphelper/source/misc/accessibleselectionhelper.cxx b/comphelper/source/misc/accessibleselectionhelper.cxx
index dea19d29b880..ed93e6888a57 100644
--- a/comphelper/source/misc/accessibleselectionhelper.cxx
+++ b/comphelper/source/misc/accessibleselectionhelper.cxx
@@ -46,7 +46,7 @@ namespace comphelper
}
//--------------------------------------------------------------------
- sal_Bool SAL_CALL OCommonAccessibleSelection::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
+ bool SAL_CALL OCommonAccessibleSelection::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
return( implIsSelected( nChildIndex ) );
}
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index 224a81ac6774..d21d7ff3cc41 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -81,21 +81,21 @@ namespace comphelper
// -----------------------------------------------------------------------------
- sal_Bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary& rBoundary, sal_Int32 nLength )
+ bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary& rBoundary, sal_Int32 nLength )
{
return ( rBoundary.startPos >= 0 ) && ( rBoundary.startPos < nLength ) && ( rBoundary.endPos >= 0 ) && ( rBoundary.endPos <= nLength );
}
// -----------------------------------------------------------------------------
- sal_Bool OCommonAccessibleText::implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength )
+ bool OCommonAccessibleText::implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength )
{
return ( nIndex >= 0 ) && ( nIndex < nLength );
}
// -----------------------------------------------------------------------------
- sal_Bool OCommonAccessibleText::implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength )
+ bool OCommonAccessibleText::implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength )
{
return ( nStartIndex >= 0 ) && ( nStartIndex <= nLength ) && ( nEndIndex >= 0 ) && ( nEndIndex <= nLength );
}
@@ -133,9 +133,9 @@ namespace comphelper
// -----------------------------------------------------------------------------
- sal_Bool OCommonAccessibleText::implGetWordBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
+ bool OCommonAccessibleText::implGetWordBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex )
{
- sal_Bool bWord = sal_False;
+ bool bWord = false;
OUString sText( implGetText() );
if ( implIsValidIndex( nIndex, sText.getLength() ) )
@@ -151,7 +151,7 @@ namespace comphelper
{
sal_Int32 nType = xCharClass->getCharacterType( sText, rBoundary.startPos, implGetLocale() );
if ( ( nType & ( i18n::KCharacterType::LETTER | i18n::KCharacterType::DIGIT ) ) != 0 )
- bWord = sal_True;
+ bWord = true;
}
}
}
@@ -360,7 +360,7 @@ namespace comphelper
case AccessibleTextType::WORD:
{
// get word at index
- sal_Bool bWord = implGetWordBoundary( aBoundary, nIndex );
+ bool bWord = implGetWordBoundary( aBoundary, nIndex );
if ( bWord && implIsValidBoundary( aBoundary, nLength ) )
{
aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos );
@@ -472,7 +472,7 @@ namespace comphelper
// get word at index
implGetWordBoundary( aBoundary, nIndex );
// get previous word
- sal_Bool bWord = sal_False;
+ bool bWord = false;
while ( !bWord && aBoundary.startPos > 0 )
bWord = implGetWordBoundary( aBoundary, aBoundary.startPos - 1 );
if ( bWord && implIsValidBoundary( aBoundary, nLength ) )
@@ -597,7 +597,7 @@ namespace comphelper
// get word at index
implGetWordBoundary( aBoundary, nIndex );
// get next word
- sal_Bool bWord = sal_False;
+ bool bWord = false;
while ( !bWord && aBoundary.endPos < nLength )
bWord = implGetWordBoundary( aBoundary, aBoundary.endPos );
if ( bWord && implIsValidBoundary( aBoundary, nLength ) )
@@ -615,7 +615,7 @@ namespace comphelper
// get next sentence
sal_Int32 nEnd = aBoundary.endPos;
sal_Int32 nI = aBoundary.endPos;
- sal_Bool bFound = sal_False;
+ bool bFound = false;
while ( !bFound && ++nI < nLength )
{
implGetSentenceBoundary( aBoundary, nI );
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx
index 7f47f62f246a..f189530365f0 100644
--- a/comphelper/source/misc/accessiblewrapper.cxx
+++ b/comphelper/source/misc/accessiblewrapper.cxx
@@ -75,7 +75,7 @@ namespace comphelper
//-------------------------------------------------------------------------
OWrappedAccessibleChildrenManager::OWrappedAccessibleChildrenManager( const Reference< XComponentContext >& _rxContext )
:m_xContext( _rxContext )
- ,m_bTransientChildren( sal_True )
+ ,m_bTransientChildren( true )
{
}
@@ -85,7 +85,7 @@ namespace comphelper
}
//-------------------------------------------------------------------------
- void OWrappedAccessibleChildrenManager::setTransientChildren( sal_Bool _bSet )
+ void OWrappedAccessibleChildrenManager::setTransientChildren( bool _bSet )
{
m_bTransientChildren = _bSet;
}
@@ -123,7 +123,7 @@ namespace comphelper
//-------------------------------------------------------------------------
Reference< XAccessible > OWrappedAccessibleChildrenManager::getAccessibleWrapperFor(
- const Reference< XAccessible >& _rxKey, sal_Bool _bCreate )
+ const Reference< XAccessible >& _rxKey, bool _bCreate )
{
Reference< XAccessible > xValue;
@@ -185,7 +185,7 @@ namespace comphelper
_rOutValue.clear();
Reference< XAccessible > xChild;
if ( _rInValue >>= xChild )
- _rOutValue <<= getAccessibleWrapperFor( xChild, sal_True );
+ _rOutValue <<= getAccessibleWrapperFor( xChild, true );
}
//-------------------------------------------------------------------------
@@ -460,7 +460,7 @@ namespace comphelper
#if OSL_DEBUG_LEVEL > 0
if ( AccessibleEventId::STATE_CHANGED == _rEvent.EventId )
{
- sal_Bool bChildTransienceChanged = sal_False;
+ bool bChildTransienceChanged = false;
sal_Int16 nChangeState = 0;
if ( _rEvent.OldValue >>= nChangeState )
bChildTransienceChanged = bChildTransienceChanged || AccessibleStateType::MANAGES_DESCENDANTS == nChangeState;
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index 32e4cecc244b..b84853a27e25 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -139,7 +139,7 @@ namespace comphelper
}
//---------------------------------------------------------------------
- sal_Bool OAccessibleImplementationAccess::setAccessibleParent(
+ bool OAccessibleImplementationAccess::setAccessibleParent(
const Reference< XAccessibleContext >& _rxComponent, const Reference< XAccessible >& _rxNewParent )
{
OAccessibleImplementationAccess* pImplementation = getImplementation( _rxComponent );
diff --git a/comphelper/source/misc/configurationhelper.cxx b/comphelper/source/misc/configurationhelper.cxx
index 14b82de407ff..4cb1cb1c812f 100644
--- a/comphelper/source/misc/configurationhelper.cxx
+++ b/comphelper/source/misc/configurationhelper.cxx
@@ -53,7 +53,7 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::openConfig(cons
}
// enable lazy writing
- sal_Bool bLazy = ((eMode & ConfigurationHelper::E_LAZY_WRITE)==ConfigurationHelper::E_LAZY_WRITE);
+ bool bLazy = ((eMode & ConfigurationHelper::E_LAZY_WRITE)==ConfigurationHelper::E_LAZY_WRITE);
aParam.Name = "lazywrite";
aParam.Value = css::uno::makeAny(bLazy);
lParams.push_back(css::uno::makeAny(aParam));
@@ -61,7 +61,7 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::openConfig(cons
// open it
css::uno::Reference< css::uno::XInterface > xCFG;
- sal_Bool bReadOnly = ((eMode & ConfigurationHelper::E_READONLY)==ConfigurationHelper::E_READONLY);
+ bool bReadOnly = ((eMode & ConfigurationHelper::E_READONLY)==ConfigurationHelper::E_READONLY);
if (bReadOnly)
xCFG = xConfigProvider->createInstanceWithArguments(
OUString("com.sun.star.configuration.ConfigurationAccess"),
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index 72b8636cbe7b..a690658ee84e 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -95,9 +95,9 @@ uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswo
}
// ============================================================================
-sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword, const uno::Sequence< beans::PropertyValue >& aInfo )
+bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword, const uno::Sequence< beans::PropertyValue >& aInfo )
{
- sal_Bool bResult = sal_False;
+ bool bResult = false;
if ( !aPassword.isEmpty() && aInfo.getLength() )
{
OUString sAlgorithm;
@@ -123,7 +123,7 @@ sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword,
for ( sal_Int32 nInd = 0; nInd < aNewHash.getLength() && nInd < aHash.getLength() && aNewHash[nInd] == aHash[nInd]; nInd ++ )
{
if ( nInd == aNewHash.getLength() - 1 && nInd == aHash.getLength() - 1 )
- bResult = sal_True;
+ bResult = true;
}
}
}
diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx
index c0a59a79ab70..eb833fe74ce2 100644
--- a/comphelper/source/misc/docpasswordrequest.cxx
+++ b/comphelper/source/misc/docpasswordrequest.cxx
@@ -50,13 +50,13 @@ class AbortContinuation : public ::cppu::WeakImplHelper1< XInteractionAbort >
public:
inline explicit AbortContinuation() : mbSelected( false ) {}
- inline sal_Bool isSelected() const { return mbSelected; }
+ inline bool isSelected() const { return mbSelected; }
inline void reset() { mbSelected = false; }
virtual void SAL_CALL select() throw( RuntimeException ) { mbSelected = true; }
private:
- sal_Bool mbSelected;
+ bool mbSelected;
};
// ============================================================================
@@ -64,12 +64,12 @@ private:
class PasswordContinuation : public ::cppu::WeakImplHelper1< XInteractionPassword2 >
{
public:
- inline explicit PasswordContinuation() : mbReadOnly( sal_False ), mbSelected( sal_False ) {}
+ inline explicit PasswordContinuation() : mbReadOnly( false ), mbSelected( false ) {}
- inline sal_Bool isSelected() const { return mbSelected; }
- inline void reset() { mbSelected = sal_False; }
+ inline bool isSelected() const { return mbSelected; }
+ inline void reset() { mbSelected = false; }
- virtual void SAL_CALL select() throw( RuntimeException ) { mbSelected = sal_True; }
+ virtual void SAL_CALL select() throw( RuntimeException ) { mbSelected = true; }
virtual void SAL_CALL setPassword( const OUString& rPass ) throw( RuntimeException ) { maPassword = rPass; }
virtual OUString SAL_CALL getPassword() throw( RuntimeException ) { return maPassword; }
@@ -83,8 +83,8 @@ public:
private:
OUString maPassword;
OUString maModifyPassword;
- sal_Bool mbReadOnly;
- sal_Bool mbSelected;
+ bool mbReadOnly;
+ bool mbSelected;
};
// ============================================================================
@@ -106,7 +106,7 @@ SimplePasswordRequest::~SimplePasswordRequest()
{
}
-sal_Bool SimplePasswordRequest::isPassword() const
+bool SimplePasswordRequest::isPassword() const
{
return mpPassword->isSelected();
}
@@ -129,7 +129,7 @@ Sequence< Reference< XInteractionContinuation > > SAL_CALL SimplePasswordRequest
// ============================================================================
DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType,
- PasswordRequestMode eMode, const OUString& rDocumentName, sal_Bool bPasswordToModify )
+ PasswordRequestMode eMode, const OUString& rDocumentName, bool bPasswordToModify )
: mpAbort( NULL )
, mpPassword( NULL )
{
@@ -162,7 +162,7 @@ DocPasswordRequest::~DocPasswordRequest()
{
}
-sal_Bool DocPasswordRequest::isPassword() const
+bool DocPasswordRequest::isPassword() const
{
return mpPassword->isSelected();
}
@@ -177,7 +177,7 @@ OUString DocPasswordRequest::getPasswordToModify() const
return mpPassword->getPasswordToModify();
}
-sal_Bool DocPasswordRequest::getRecommendReadOnly() const
+bool DocPasswordRequest::getRecommendReadOnly() const
{
return mpPassword->getRecommendReadOnly();
}
diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx
index a2e9de1f7447..5c588bbd1540 100644
--- a/comphelper/source/misc/documentiologring.cxx
+++ b/comphelper/source/misc/documentiologring.cxx
@@ -34,8 +34,8 @@ namespace comphelper
// ----------------------------------------------------------
OSimpleLogRing::OSimpleLogRing()
: m_aMessages( SIMPLELOGRING_SIZE )
-, m_bInitialized( sal_False )
-, m_bFull( sal_False )
+, m_bInitialized( false )
+, m_bFull( false )
, m_nPos( 0 )
{
}
@@ -87,11 +87,11 @@ void SAL_CALL OSimpleLogRing::logString( const OUString& aMessage ) throw (uno::
if ( ++m_nPos >= m_aMessages.getLength() )
{
m_nPos = 0;
- m_bFull = sal_True;
+ m_bFull = true;
}
// if used once then default initialized
- m_bInitialized = sal_True;
+ m_bInitialized = true;
}
// ----------------------------------------------------------
@@ -107,7 +107,7 @@ uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getCollectedLog() throw (uno:
aResult[nInd] = m_aMessages[ ( nStart + nInd ) % m_aMessages.getLength() ];
// if used once then default initialized
- m_bInitialized = sal_True;
+ m_bInitialized = true;
return aResult;
}
@@ -135,7 +135,7 @@ void SAL_CALL OSimpleLogRing::initialize( const uno::Sequence< uno::Any >& aArgu
0 );
}
- m_bInitialized = sal_True;
+ m_bInitialized = true;
}
// XServiceInfo
diff --git a/comphelper/source/misc/documentiologring.hxx b/comphelper/source/misc/documentiologring.hxx
index 99915c6dfc3d..30cf4ebf3412 100644
--- a/comphelper/source/misc/documentiologring.hxx
+++ b/comphelper/source/misc/documentiologring.hxx
@@ -39,8 +39,8 @@ class OSimpleLogRing : public ::cppu::WeakImplHelper3< ::com::sun::star::logging
::osl::Mutex m_aMutex;
::com::sun::star::uno::Sequence< OUString > m_aMessages;
- sal_Bool m_bInitialized;
- sal_Bool m_bFull;
+ bool m_bInitialized;
+ bool m_bFull;
sal_Int32 m_nPos;
public:
diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx
index b25690829fcf..8e648c2c1e0b 100644
--- a/comphelper/source/misc/instancelocker.cxx
+++ b/comphelper/source/misc/instancelocker.cxx
@@ -43,8 +43,8 @@ OInstanceLocker::OInstanceLocker( const uno::Reference< uno::XComponentContext >
: m_xContext( xContext )
, m_pLockListener( NULL )
, m_pListenersContainer( NULL )
-, m_bDisposed( sal_False )
-, m_bInitialized( sal_False )
+, m_bDisposed( false )
+, m_bInitialized( false )
{
}
@@ -92,7 +92,7 @@ void SAL_CALL OInstanceLocker::dispose()
m_xLockListener = uno::Reference< uno::XInterface >();
}
- m_bDisposed = sal_True;
+ m_bDisposed = true;
}
// --------------------------------------------------------
@@ -185,7 +185,7 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg
throw;
}
- m_bInitialized = sal_True;
+ m_bInitialized = true;
}
// XServiceInfo
@@ -242,8 +242,8 @@ OLockListener::OLockListener( const uno::WeakReference< lang::XComponent >& xWra
: m_xInstance( xInstance )
, m_xApproval( xApproval )
, m_xWrapper( xWrapper )
-, m_bDisposed( sal_False )
-, m_bInitialized( sal_False )
+, m_bDisposed( false )
+, m_bInitialized( false )
, m_nMode( nMode )
{
}
@@ -289,7 +289,7 @@ void OLockListener::Dispose()
}
m_xInstance = uno::Reference< uno::XInterface >();
- m_bDisposed = sal_True;
+ m_bDisposed = true;
}
// XEventListener
@@ -445,12 +445,12 @@ void SAL_CALL OLockListener::notifyTermination( const lang::EventObject& aEvent
// XInitialization
// --------------------------------------------------------
-sal_Bool OLockListener::Init()
+bool OLockListener::Init()
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
if ( m_bDisposed || m_bInitialized )
- return sal_False;
+ return false;
try
{
@@ -480,9 +480,9 @@ sal_Bool OLockListener::Init()
throw;
}
- m_bInitialized = sal_True;
+ m_bInitialized = true;
- return sal_True;
+ return true;
}
void createRegistryInfo_OInstanceLocker()
diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx
index ba80ce39ee8d..83153f793f53 100644
--- a/comphelper/source/misc/instancelocker.hxx
+++ b/comphelper/source/misc/instancelocker.hxx
@@ -51,8 +51,8 @@ class OInstanceLocker : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::
::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
- sal_Bool m_bDisposed;
- sal_Bool m_bInitialized;
+ bool m_bDisposed;
+ bool m_bInitialized;
public:
OInstanceLocker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext );
@@ -92,8 +92,8 @@ class OLockListener : public ::cppu::WeakImplHelper2< ::com::sun::star::util::XC
::com::sun::star::uno::WeakReference< ::com::sun::star::lang::XComponent > m_xWrapper;
- sal_Bool m_bDisposed;
- sal_Bool m_bInitialized;
+ bool m_bDisposed;
+ bool m_bInitialized;
sal_Int32 m_nMode;
@@ -105,7 +105,7 @@ public:
~OLockListener();
- sal_Bool Init();
+ bool Init();
void Dispose();
// XEventListener
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index 0c6ffb7d2870..b734a8e2758c 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -261,10 +261,10 @@ OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType( const OUString
}
//-------------------------------------------------------------------------
-sal_Bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortcut,
+bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortcut,
embed::VerbDescriptor& aDescriptor )
{
- sal_Bool bResult = sal_False;
+ bool bResult = false;
uno::Reference< container::XNameAccess > xVerbsConfig = GetVerbsConfiguration();
uno::Reference< container::XNameAccess > xVerbsProps;
@@ -279,7 +279,7 @@ sal_Bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortc
&& ( xVerbsProps->getByName("VerbAttributes") >>= aTempDescr.VerbAttributes ) )
{
aDescriptor = aTempDescr;
- bResult = sal_True;
+ bResult = true;
}
}
}
@@ -569,7 +569,7 @@ OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const OUString& aMe
//-----------------------------------------------------------------------
OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName(
uno::Sequence< beans::PropertyValue >& aMediaDescr,
- sal_Bool bIgnoreType )
+ bool bIgnoreType )
{
OUString aFilterName;
@@ -647,12 +647,12 @@ OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName(
OSL_ENSURE( !aDocName.isEmpty(), "The name must exist at this point!\n" );
- sal_Bool bNeedsAddition = sal_True;
+ bool bNeedsAddition = true;
for ( sal_Int32 nMedInd = 0; nMedInd < aMediaDescr.getLength(); nMedInd++ )
if ( aMediaDescr[nMedInd].Name == "DocumentService" )
{
aMediaDescr[nMedInd].Value <<= aDocName;
- bNeedsAddition = sal_False;
+ bNeedsAddition = false;
break;
}
@@ -664,7 +664,7 @@ OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName(
aMediaDescr[nOldLen].Value <<= aDocName;
}
- return UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_True );
+ return UpdateMediaDescriptorWithFilterName( aMediaDescr, true );
}
#ifdef WNT
@@ -871,16 +871,16 @@ uno::Sequence< beans::PropertyValue > MimeConfigurationHelper::SearchForFilter(
//-------------------------------------------------------------------------
-sal_Bool MimeConfigurationHelper::ClassIDsEqual( const uno::Sequence< sal_Int8 >& aClassID1, const uno::Sequence< sal_Int8 >& aClassID2 )
+bool MimeConfigurationHelper::ClassIDsEqual( const uno::Sequence< sal_Int8 >& aClassID1, const uno::Sequence< sal_Int8 >& aClassID2 )
{
if ( aClassID1.getLength() != aClassID2.getLength() )
- return sal_False;
+ return false;
for ( sal_Int32 nInd = 0; nInd < aClassID1.getLength(); nInd++ )
if ( aClassID1[nInd] != aClassID2[nInd] )
- return sal_False;
+ return false;
- return sal_True;
+ return true;
}
//-------------------------------------------------------------------------
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index e3a03989b096..3977fd8c5eea 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -79,7 +79,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
if ( m_bRestartRequested )
return;
- m_bRestartRequested = sal_True;
+ m_bRestartRequested = true;
// the office is still not initialized, no need to terminate, changing the state is enough
if ( !m_bOfficeInitialized )
@@ -103,7 +103,7 @@ void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task:
catch ( uno::Exception& )
{
// the try to request restart has failed
- m_bRestartRequested = sal_False;
+ m_bRestartRequested = false;
}
}
@@ -126,7 +126,7 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ )
{
try
{
- sal_Bool bSuccess = sal_False;
+ bool bSuccess = false;
if ( m_xContext.is() )
{
@@ -153,12 +153,12 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ )
}
if ( !bSuccess )
- m_bRestartRequested = sal_False;
+ m_bRestartRequested = false;
}
catch( uno::Exception& )
{
// the try to restart has failed
- m_bRestartRequested = sal_False;
+ m_bRestartRequested = false;
}
}
diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx
index 536484952b59..d7cae3dafec4 100644
--- a/comphelper/source/misc/officerestartmanager.hxx
+++ b/comphelper/source/misc/officerestartmanager.hxx
@@ -38,14 +38,14 @@ class OOfficeRestartManager : public ::cppu::WeakImplHelper3< ::com::sun::star::
::osl::Mutex m_aMutex;
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
- sal_Bool m_bOfficeInitialized;
- sal_Bool m_bRestartRequested;
+ bool m_bOfficeInitialized;
+ bool m_bRestartRequested;
public:
OOfficeRestartManager( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext )
: m_xContext( xContext )
- , m_bOfficeInitialized( sal_False )
- , m_bRestartRequested( sal_False )
+ , m_bOfficeInitialized( false )
+ , m_bRestartRequested( false )
{}
virtual ~OOfficeRestartManager()
diff --git a/comphelper/source/misc/sequence.cxx b/comphelper/source/misc/sequence.cxx
index 00b3c3d584fb..ea0cfe117f0d 100644
--- a/comphelper/source/misc/sequence.cxx
+++ b/comphelper/source/misc/sequence.cxx
@@ -25,7 +25,7 @@ namespace comphelper
//.........................................................................
//------------------------------------------------------------------------------
-staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rList, const OUString& _rValue, sal_Bool _bOnlyFirst)
+staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst)
{
sal_Int32 nLength = _rList.getLength();
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index 24dd7edc9637..e3df3a9e9f78 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -180,7 +180,7 @@ void SequenceAsHashMap::operator>>(css::uno::Sequence< css::beans::NamedValue >&
}
}
-const css::uno::Any SequenceAsHashMap::getAsConstAny(::sal_Bool bAsPropertyValueList) const
+const css::uno::Any SequenceAsHashMap::getAsConstAny(bool bAsPropertyValueList) const
{
css::uno::Any aDestination;
if (bAsPropertyValueList)
@@ -204,7 +204,7 @@ const css::uno::Sequence< css::beans::PropertyValue > SequenceAsHashMap::getAsCo
return lReturn;
}
-sal_Bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const
+bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const
{
const_iterator pCheck;
for ( pCheck = rCheck.begin();
@@ -216,14 +216,14 @@ sal_Bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const
const_iterator pFound = find(sCheckName);
if (pFound == end())
- return sal_False;
+ return false;
const css::uno::Any& aFoundValue = pFound->second;
if (aFoundValue != aCheckValue)
- return sal_False;
+ return false;
}
- return sal_True;
+ return true;
}
void SequenceAsHashMap::update(const SequenceAsHashMap& rUpdate)
diff --git a/comphelper/source/misc/stillreadwriteinteraction.cxx b/comphelper/source/misc/stillreadwriteinteraction.cxx
index 79fcbdf90400..1d74d8ffcf7b 100644
--- a/comphelper/source/misc/stillreadwriteinteraction.cxx
+++ b/comphelper/source/misc/stillreadwriteinteraction.cxx
@@ -28,9 +28,9 @@
namespace comphelper{
StillReadWriteInteraction::StillReadWriteInteraction(const css::uno::Reference< css::task::XInteractionHandler >& xHandler)
- : m_bUsed (sal_False)
- , m_bHandledByMySelf (sal_False)
- , m_bHandledByInternalHandler(sal_False)
+ : m_bUsed (false)
+ , m_bHandledByMySelf (false)
+ , m_bHandledByInternalHandler(false)
{
::std::vector< ::ucbhelper::InterceptedInteraction::InterceptedRequest > lInterceptions;
::ucbhelper::InterceptedInteraction::InterceptedRequest aInterceptedRequest;
@@ -58,12 +58,12 @@ void StillReadWriteInteraction::resetInterceptions()
void StillReadWriteInteraction::resetErrorStates()
{
- m_bUsed = sal_False;
- m_bHandledByMySelf = sal_False;
- m_bHandledByInternalHandler = sal_False;
+ m_bUsed = false;
+ m_bHandledByMySelf = false;
+ m_bHandledByInternalHandler = false;
}
-sal_Bool StillReadWriteInteraction::wasWriteError()
+bool StillReadWriteInteraction::wasWriteError()
{
return (m_bUsed && m_bHandledByMySelf);
}
@@ -72,10 +72,10 @@ ucbhelper::InterceptedInteraction::EInterceptionState StillReadWriteInteraction:
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest)
{
// we are used!
- m_bUsed = sal_True;
+ m_bUsed = true;
// check if it's a real interception - might some parameters are not the right ones ...
- sal_Bool bAbort = sal_False;
+ bool bAbort = false;
switch(aRequest.Handle)
{
case HANDLE_INTERACTIVEIOEXCEPTION:
@@ -97,7 +97,7 @@ ucbhelper::InterceptedInteraction::EInterceptionState StillReadWriteInteraction:
case HANDLE_UNSUPPORTEDDATASINKEXCEPTION:
{
- bAbort = sal_True;
+ bAbort = true;
}
break;
}
@@ -105,7 +105,7 @@ ucbhelper::InterceptedInteraction::EInterceptionState StillReadWriteInteraction:
// handle interaction by ourself
if (bAbort)
{
- m_bHandledByMySelf = sal_True;
+ m_bHandledByMySelf = true;
css::uno::Reference< css::task::XInteractionContinuation > xAbort = ::ucbhelper::InterceptedInteraction::extractContinuation(
xRequest->getContinuations(),
::getCppuType(static_cast< css::uno::Reference< css::task::XInteractionAbort >* >(0)));
@@ -118,7 +118,7 @@ ucbhelper::InterceptedInteraction::EInterceptionState StillReadWriteInteraction:
// Otherwhise use internal handler.
if (m_xInterceptedHandler.is())
{
- m_bHandledByInternalHandler = sal_True;
+ m_bHandledByInternalHandler = true;
m_xInterceptedHandler->handle(xRequest);
}
return ::ucbhelper::InterceptedInteraction::E_INTERCEPTED;
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index a4f36e8db0b0..2a362ebd040c 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -286,7 +286,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromURL(
const OUString& aURL,
sal_Int32 nStorageMode,
const uno::Reference< uno::XComponentContext >& rxContext,
- sal_Bool bRepairStorage )
+ bool bRepairStorage )
throw ( uno::Exception )
{
uno::Sequence< beans::PropertyValue > aProps( 1 );
@@ -317,7 +317,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromInputStr
const OUString& aFormat,
const uno::Reference < io::XInputStream >& xStream,
const uno::Reference< uno::XComponentContext >& rxContext,
- sal_Bool bRepairStorage )
+ bool bRepairStorage )
throw ( uno::Exception )
{
uno::Sequence< beans::PropertyValue > aProps( 1 );
@@ -349,7 +349,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromStream(
const uno::Reference < io::XStream >& xStream,
sal_Int32 nStorageMode,
const uno::Reference< uno::XComponentContext >& rxContext,
- sal_Bool bRepairStorage )
+ bool bRepairStorage )
throw ( uno::Exception )
{
uno::Sequence< beans::PropertyValue > aProps( 1 );
@@ -437,14 +437,14 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData(
}
// ----------------------------------------------------------------------
-sal_Bool OStorageHelper::IsValidZipEntryFileName( const OUString& aName, sal_Bool bSlashAllowed )
+bool OStorageHelper::IsValidZipEntryFileName( const OUString& aName, bool bSlashAllowed )
{
return IsValidZipEntryFileName( aName.getStr(), aName.getLength(), bSlashAllowed );
}
// ----------------------------------------------------------------------
-sal_Bool OStorageHelper::IsValidZipEntryFileName(
- const sal_Unicode *pChar, sal_Int32 nLength, sal_Bool bSlashAllowed )
+bool OStorageHelper::IsValidZipEntryFileName(
+ const sal_Unicode *pChar, sal_Int32 nLength, bool bSlashAllowed )
{
for ( sal_Int32 i = 0; i < nLength; i++ )
{
@@ -457,23 +457,23 @@ sal_Bool OStorageHelper::IsValidZipEntryFileName(
case '\"':
case '|':
case ':':
- return sal_False;
+ return false;
case '/':
if ( !bSlashAllowed )
- return sal_False;
+ return false;
break;
default:
if ( pChar[i] < 32 || (pChar[i] >= 0xD800 && pChar[i] <= 0xDFFF) )
- return sal_False;
+ return false;
}
}
- return sal_True;
+ return true;
}
// ----------------------------------------------------------------------
-sal_Bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSegment )
+bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSegment )
{
- sal_Bool bResult = sal_False;
+ bool bResult = false;
const sal_Int32 nPathLen = aPath.getLength();
const sal_Int32 nSegLen = aSegment.getLength();
@@ -486,16 +486,16 @@ sal_Bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString&
aInternalSegment += "/";
if ( aPath.indexOf( aInternalSegment ) >= 0 )
- bResult = sal_True;
+ bResult = true;
if ( !bResult && !aPath.compareTo( aSegment, nSegLen ) )
{
if ( nPathLen == nSegLen || aPath[nSegLen] == '/' )
- bResult = sal_True;
+ bResult = true;
}
if ( !bResult && nPathLen > nSegLen && aPath.copy( nPathLen - nSegLen - 1, nSegLen + 1 ) == aEndSegment )
- bResult = sal_True;
+ bResult = true;
}
return bResult;
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 012dd9ee9dff..b747f79d6541 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -261,10 +261,10 @@ class SyntaxHighlighter::Tokenizer
sal_uInt16 aCharTypeTab[256];
// Auxiliary function: testing of the character flags
- sal_Bool testCharFlags( sal_Unicode c, sal_uInt16 nTestFlags );
+ bool testCharFlags( sal_Unicode c, sal_uInt16 nTestFlags );
// Get new token, EmptyString == nothing more over there
- sal_Bool getNextToken( const sal_Unicode*& pos, /*out*/TokenTypes& reType,
+ bool getNextToken( const sal_Unicode*& pos, /*out*/TokenTypes& reType,
/*out*/const sal_Unicode*& rpStartPos, /*out*/const sal_Unicode*& rpEndPos );
const char** ppListKeyWords;
@@ -282,7 +282,7 @@ public:
};
// Helper function: test character flag
-sal_Bool SyntaxHighlighter::Tokenizer::testCharFlags( sal_Unicode c, sal_uInt16 nTestFlags )
+bool SyntaxHighlighter::Tokenizer::testCharFlags( sal_Unicode c, sal_uInt16 nTestFlags )
{
bool bRet = false;
if( c != 0 && c <= 255 )
@@ -303,7 +303,7 @@ void SyntaxHighlighter::Tokenizer::setKeyWords( const char** ppKeyWords, sal_uIn
nKeyWordCount = nCount;
}
-sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*out*/TokenTypes& reType,
+bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*out*/TokenTypes& reType,
/*out*/const sal_Unicode*& rpStartPos, /*out*/const sal_Unicode*& rpEndPos )
{
reType = TT_UNKNOWN;
@@ -312,24 +312,24 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
sal_Unicode c = *pos;
if( c == 0 )
- return sal_False;
+ return false;
++pos;
//*** Go through all possibilities ***
// Space?
- if ( (testCharFlags( c, CHAR_SPACE ) == sal_True) )
+ if ( testCharFlags( c, CHAR_SPACE ) )
{
- while( testCharFlags( *pos, CHAR_SPACE ) == sal_True )
+ while( testCharFlags( *pos, CHAR_SPACE ) )
++pos;
reType = TT_WHITESPACE;
}
// Identifier?
- else if ( (testCharFlags( c, CHAR_START_IDENTIFIER ) == sal_True) )
+ else if ( testCharFlags( c, CHAR_START_IDENTIFIER ) )
{
- sal_Bool bIdentifierChar;
+ bool bIdentifierChar;
do
{
// Naechstes Zeichen holen
@@ -372,7 +372,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
{
// Remove all characters until end of line or EOF
sal_Unicode cPeek = *pos;
- while( cPeek != 0 && testCharFlags( cPeek, CHAR_EOL ) == sal_False )
+ while( cPeek != 0 && !testCharFlags( cPeek, CHAR_EOL ) )
{
c = *pos++;
cPeek = *pos;
@@ -387,14 +387,14 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
// Operator?
// only for BASIC '\'' should be a comment, otherwise it is a normal string and handled there
- else if ( ( testCharFlags( c, CHAR_OPERATOR ) == sal_True ) || ( (c == '\'') && (aLanguage==HIGHLIGHT_BASIC)) )
+ else if ( testCharFlags( c, CHAR_OPERATOR ) || ( (c == '\'') && (aLanguage==HIGHLIGHT_BASIC)) )
{
// parameters for SQL view
if ( (c==':') || (c=='?'))
{
if (c!='?')
{
- sal_Bool bIdentifierChar;
+ bool bIdentifierChar;
do
{
// Get next character
@@ -413,7 +413,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
if (cPeekNext=='-')
{
// Remove all characters until end of line or EOF
- while( cPeekNext != 0 && testCharFlags( cPeekNext, CHAR_EOL ) == sal_False )
+ while( cPeekNext != 0 && !testCharFlags( cPeekNext, CHAR_EOL ) )
{
++pos;
cPeekNext = *pos;
@@ -427,7 +427,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
if (cPeekNext=='/')
{
// Remove all characters until end of line or EOF
- while( cPeekNext != 0 && testCharFlags( cPeekNext, CHAR_EOL ) == sal_False )
+ while( cPeekNext != 0 && !testCharFlags( cPeekNext, CHAR_EOL ) )
{
++pos;
cPeekNext = *pos;
@@ -469,7 +469,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
}
// Number?
- else if( testCharFlags( c, CHAR_START_NUMBER ) == sal_True )
+ else if( testCharFlags( c, CHAR_START_NUMBER ) )
{
reType = TT_NUMBER;
@@ -511,7 +511,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
if( reType == TT_NUMBER && nRadix == 10 )
{
// Flag if the last character is an exponent
- sal_Bool bAfterExpChar = sal_False;
+ bool bAfterExpChar = false;
// Read all numbers
while( testCharFlags( *pos, CHAR_IN_NUMBER ) ||
@@ -526,7 +526,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
}
// String?
- else if( testCharFlags( c, CHAR_START_STRING ) == sal_True )
+ else if( testCharFlags( c, CHAR_START_STRING ) )
{
// Remember which character has opened the string
sal_Unicode cEndString = c;
@@ -544,7 +544,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
break;
}
c = *pos++;
- if( testCharFlags( c, CHAR_EOL ) == sal_True )
+ if( testCharFlags( c, CHAR_EOL ) )
{
// ERROR: unterminated string literal
reType = TT_ERROR;
@@ -563,11 +563,11 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
}
// End of line?
- else if( testCharFlags( c, CHAR_EOL ) == sal_True )
+ else if( testCharFlags( c, CHAR_EOL ) )
{
// If another EOL character comes, read it
sal_Unicode cNext = *pos;
- if( cNext != c && testCharFlags( cNext, CHAR_EOL ) == sal_True )
+ if( cNext != c && testCharFlags( cNext, CHAR_EOL ) )
++pos;
reType = TT_EOL;
@@ -577,7 +577,7 @@ sal_Bool SyntaxHighlighter::Tokenizer::getNextToken( const sal_Unicode*& pos, /*
// Save end position
rpEndPos = pos;
- return sal_True;
+ return true;
}
SyntaxHighlighter::Tokenizer::Tokenizer( HighlighterLanguage aLang ): aLanguage(aLang)
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx
index 684f2d2779c2..ba5f936e7e25 100644
--- a/comphelper/source/misc/types.cxx
+++ b/comphelper/source/misc/types.cxx
@@ -42,7 +42,7 @@ using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
//-------------------------------------------------------------------------
-sal_Bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
+bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
{
return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
@@ -54,7 +54,7 @@ sal_Bool operator ==(const DateTime& _rLeft, const DateTime& _rRight)
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const Date& _rLeft, const Date& _rRight)
+bool operator ==(const Date& _rLeft, const Date& _rRight)
{
return ( _rLeft.Day == _rRight.Day) &&
( _rLeft.Month == _rRight.Month) &&
@@ -62,7 +62,7 @@ sal_Bool operator ==(const Date& _rLeft, const Date& _rRight)
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const Time& _rLeft, const Time& _rRight)
+bool operator ==(const Time& _rLeft, const Time& _rRight)
{
return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
@@ -119,9 +119,9 @@ OUString getString(const Any& _rAny)
}
//------------------------------------------------------------------------------
-sal_Bool getBOOL(const Any& _rAny)
+bool getBOOL(const Any& _rAny)
{
- sal_Bool nReturn = sal_False;
+ bool nReturn = false;
if (_rAny.getValueType() == ::getCppuBooleanType())
nReturn = *(sal_Bool*)_rAny.getValue();
else
@@ -149,7 +149,7 @@ FontDescriptor getDefaultFont()
}
//------------------------------------------------------------------------------
-sal_Bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
+bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
{
// getthe type lib descriptions
typelib_TypeDescription* pAssignable = NULL;
@@ -164,7 +164,7 @@ sal_Bool isAssignableFrom(const Type& _rAssignable, const Type& _rFrom)
//------------------------------------------------------------------
template<class TYPE>
-bool tryCompare(const void* _pData, const Any& _rValue, sal_Bool& _bIdentical, TYPE& _rOut)
+bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, TYPE& _rOut)
{
bool bSuccess = _rValue >>= _rOut;
_bIdentical = bSuccess && (_rOut == *reinterpret_cast<const TYPE*>(_pData));
@@ -172,7 +172,7 @@ bool tryCompare(const void* _pData, const Any& _rValue, sal_Bool& _bIdentical, T
}
//------------------------------------------------------------------
-bool tryCompare(const void* _pData, const Any& _rValue, sal_Bool& _bIdentical, sal_Unicode& _rOut)
+bool tryCompare(const void* _pData, const Any& _rValue, bool& _bIdentical, sal_Unicode& _rOut)
{
bool bSuccess = ( _rValue.getValueTypeClass() == TypeClass_CHAR );
if ( bSuccess )
@@ -182,9 +182,9 @@ bool tryCompare(const void* _pData, const Any& _rValue, sal_Bool& _bIdentical, s
}
//------------------------------------------------------------------
-sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
+bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
{
- sal_Bool bRes = sal_True;
+ bool bRes = true;
if (_rType.getTypeClass() == TypeClass_ANY)
{
@@ -208,16 +208,16 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
}
else
{
- sal_Bool bConversionSuccess = sal_False;
+ bool bConversionSuccess = false;
switch (_rType.getTypeClass())
{
case TypeClass_VOID:
- bConversionSuccess = sal_True;
+ bConversionSuccess = true;
bRes = _rValue.getValueType().getTypeClass() == TypeClass_VOID;
break;
case TypeClass_BOOLEAN:
{
- sal_Bool aDummy;
+ bool aDummy;
bConversionSuccess = tryCompare(pData, _rValue, bRes, aDummy);
break;
}
@@ -298,7 +298,7 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
bRes = *(FontDescriptor*)pData == aTemp;
}
else
- bRes = sal_False;
+ bRes = false;
break;
}
if (isA(_rType, static_cast<Date*>(NULL)))
@@ -413,7 +413,7 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
}
break;
default:
- bRes = sal_False;
+ bRes = false;
}
bRes = bRes && bConversionSuccess;
@@ -422,13 +422,13 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
}
//------------------------------------------------------------------------------
-sal_Bool compare(const Any& rLeft, const Any& rRight)
+bool compare(const Any& rLeft, const Any& rRight)
{
return compare_impl(rLeft.getValueType(), rLeft.getValue(), rRight);
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
+bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
{
return ( _rLeft.Name.equals( _rRight.Name ) ) &&
( _rLeft.Height == _rRight.Height ) &&