summaryrefslogtreecommitdiff
path: root/chart2/source/inc/LifeTime.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-15 15:17:13 +0200
committerNoel Grandin <noel@peralex.com>2014-04-15 15:23:29 +0200
commit329332ba526983c1d64763f61df2940e6bcb7d8a (patch)
treecab0aa5fb7bdabeb56300b27cd7dbfa740820c46 /chart2/source/inc/LifeTime.hxx
parentffbc86f5ac2a835d841d53938824242e0a69fdd4 (diff)
chart2: sal_Bool->bool
Change-Id: I85751b4e636596ef88ef02bc958abdc6abf98427
Diffstat (limited to 'chart2/source/inc/LifeTime.hxx')
-rw-r--r--chart2/source/inc/LifeTime.hxx58
1 files changed, 29 insertions, 29 deletions
diff --git a/chart2/source/inc/LifeTime.hxx b/chart2/source/inc/LifeTime.hxx
index ce7626d00977..4b208585fefd 100644
--- a/chart2/source/inc/LifeTime.hxx
+++ b/chart2/source/inc/LifeTime.hxx
@@ -39,21 +39,21 @@ friend class LifeTimeGuard;
protected:
mutable ::osl::Mutex m_aAccessMutex;
public:
-OOO_DLLPUBLIC_CHARTTOOLS LifeTimeManager( ::com::sun::star::lang::XComponent* pComponent, sal_Bool bLongLastingCallsCancelable = sal_False );
+OOO_DLLPUBLIC_CHARTTOOLS LifeTimeManager( ::com::sun::star::lang::XComponent* pComponent, bool bLongLastingCallsCancelable = false );
OOO_DLLPUBLIC_CHARTTOOLS virtual ~LifeTimeManager();
OOO_DLLPUBLIC_CHARTTOOLS bool impl_isDisposed( bool bAssert=true );
-OOO_DLLPUBLIC_CHARTTOOLS sal_Bool dispose() throw(::com::sun::star::uno::RuntimeException);
+OOO_DLLPUBLIC_CHARTTOOLS bool dispose() throw(::com::sun::star::uno::RuntimeException);
public:
::cppu::OMultiTypeInterfaceContainerHelper m_aListenerContainer;
protected:
- virtual sal_Bool impl_canStartApiCall();
+ virtual bool impl_canStartApiCall();
virtual void impl_apiCallCountReachedNull(){}
- void impl_registerApiCall(sal_Bool bLongLastingCall);
- void impl_unregisterApiCall(sal_Bool bLongLastingCall);
+ void impl_registerApiCall(bool bLongLastingCall);
+ void impl_unregisterApiCall(bool bLongLastingCall);
void impl_init();
@@ -63,10 +63,10 @@ protected:
::osl::Condition m_aNoAccessCountCondition;
sal_Int32 volatile m_nAccessCount;
- sal_Bool volatile m_bDisposed;
- sal_Bool volatile m_bInDispose;
+ bool volatile m_bDisposed;
+ bool volatile m_bInDispose;
- sal_Bool m_bLongLastingCallsCancelable;
+ bool m_bLongLastingCallsCancelable;
::osl::Condition m_aNoLongLastingCallCountCondition;
sal_Int32 volatile m_nLongLastingCallCount;
};
@@ -77,48 +77,48 @@ protected:
::com::sun::star::util::XCloseable* m_pCloseable;
::osl::Condition m_aEndTryClosingCondition;
- sal_Bool volatile m_bClosed;
- sal_Bool volatile m_bInTryClose;
+ bool volatile m_bClosed;
+ bool volatile m_bInTryClose;
//the ownership between model and controller is not clear at first
//each controller might consider him as owner of the model first
//at start the model is not considered as owner of itself
- sal_Bool volatile m_bOwnership;
+ bool volatile m_bOwnership;
//with a XCloseable::close call and during XCloseListener::queryClosing
//the ownership can be regulated more explicit,
//if so the ownership is considered to be well known
- sal_Bool volatile m_bOwnershipIsWellKnown;
+ bool volatile m_bOwnershipIsWellKnown;
public:
OOO_DLLPUBLIC_CHARTTOOLS CloseableLifeTimeManager( ::com::sun::star::util::XCloseable* pCloseable
, ::com::sun::star::lang::XComponent* pComponent
- , sal_Bool bLongLastingCallsCancelable = sal_False );
+ , bool bLongLastingCallsCancelable = false );
OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager();
OOO_DLLPUBLIC_CHARTTOOLS bool impl_isDisposedOrClosed( bool bAssert=true );
-OOO_DLLPUBLIC_CHARTTOOLS sal_Bool g_close_startTryClose(sal_Bool bDeliverOwnership)
+OOO_DLLPUBLIC_CHARTTOOLS bool g_close_startTryClose(bool bDeliverOwnership)
throw ( ::com::sun::star::uno::Exception );
-OOO_DLLPUBLIC_CHARTTOOLS sal_Bool g_close_isNeedToCancelLongLastingCalls( sal_Bool bDeliverOwnership, ::com::sun::star::util::CloseVetoException& ex )
+OOO_DLLPUBLIC_CHARTTOOLS bool g_close_isNeedToCancelLongLastingCalls( bool bDeliverOwnership, ::com::sun::star::util::CloseVetoException& ex )
throw ( ::com::sun::star::util::CloseVetoException );
-OOO_DLLPUBLIC_CHARTTOOLS void g_close_endTryClose(sal_Bool bDeliverOwnership, sal_Bool bMyVeto );
+OOO_DLLPUBLIC_CHARTTOOLS void g_close_endTryClose(bool bDeliverOwnership, bool bMyVeto );
OOO_DLLPUBLIC_CHARTTOOLS void g_close_endTryClose_doClose();
-OOO_DLLPUBLIC_CHARTTOOLS sal_Bool g_addCloseListener( const ::com::sun::star::uno::Reference<
+OOO_DLLPUBLIC_CHARTTOOLS bool g_addCloseListener( const ::com::sun::star::uno::Reference<
::com::sun::star::util::XCloseListener > & xListener )
throw(::com::sun::star::uno::RuntimeException);
protected:
- virtual sal_Bool impl_canStartApiCall() SAL_OVERRIDE;
+ virtual bool impl_canStartApiCall() SAL_OVERRIDE;
virtual void impl_apiCallCountReachedNull() SAL_OVERRIDE;
- void impl_setOwnership( sal_Bool bDeliverOwnership, sal_Bool bMyVeto );
- sal_Bool impl_shouldCloseAtNextChance();
+ void impl_setOwnership( bool bDeliverOwnership, bool bMyVeto );
+ bool impl_shouldCloseAtNextChance();
void impl_doClose();
void impl_init()
{
- m_bClosed = sal_False;
- m_bInTryClose = sal_False;
- m_bOwnership = sal_False;
- m_bOwnershipIsWellKnown = sal_False;
+ m_bClosed = false;
+ m_bInTryClose = false;
+ m_bOwnership = false;
+ m_bOwnershipIsWellKnown = false;
m_aEndTryClosingCondition.set();
}
};
@@ -192,20 +192,20 @@ public:
LifeTimeGuard( LifeTimeManager& rManager )
: m_guard( rManager.m_aAccessMutex )
, m_rManager(rManager)
- , m_bCallRegistered(sal_False)
- , m_bLongLastingCallRegistered(sal_False)
+ , m_bCallRegistered(false)
+ , m_bLongLastingCallRegistered(false)
{
}
- sal_Bool startApiCall(sal_Bool bLongLastingCall=sal_False);
+ bool startApiCall(bool bLongLastingCall=false);
~LifeTimeGuard();
void clear() { m_guard.clear(); }
private:
osl::ClearableMutexGuard m_guard;
LifeTimeManager& m_rManager;
- sal_Bool m_bCallRegistered;
- sal_Bool m_bLongLastingCallRegistered;
+ bool m_bCallRegistered;
+ bool m_bLongLastingCallRegistered;
private:
// these make no sense