summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-09-16 16:49:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-09-16 21:00:15 +0200
commitc31a1bc4fad33451a25265be90f0ef9d6ea3bb91 (patch)
treea5afa6e04f2296440e488d4813b8f1c0e1743fe2 /chart2
parent7d41122d44f8566316d984333b17af39cf413a52 (diff)
Typo "ones" -> "once" in comments
Change-Id: I832d92e4ba1799869f4ebbb5451e9a80e28bb573 Reviewed-on: https://gerrit.libreoffice.org/79020 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/LifeTime.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/chart2/source/tools/LifeTime.cxx b/chart2/source/tools/LifeTime.cxx
index 5a7a10b37307..26e19b1a6b53 100644
--- a/chart2/source/tools/LifeTime.cxx
+++ b/chart2/source/tools/LifeTime.cxx
@@ -86,7 +86,7 @@ void LifeTimeManager::impl_registerApiCall(bool bLongLastingCall)
void LifeTimeManager::impl_unregisterApiCall(bool bLongLastingCall)
{
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex may be released inbetween in special case of impl_apiCallCountReachedNull()
OSL_ENSURE( m_nAccessCount>0, "access count mismatch" );
@@ -193,7 +193,7 @@ bool CloseableLifeTimeManager::g_close_startTryClose(bool bDeliverOwnership)
if( impl_isDisposedOrClosed(false) )
return false;
- //Mutex needs to be acquired exactly ones; will be released inbetween
+ //Mutex needs to be acquired exactly once; will be released inbetween
if( !impl_canStartApiCall() )
return false;
//mutex is acquired
@@ -251,7 +251,7 @@ void CloseableLifeTimeManager::g_close_endTryClose(bool bDeliverOwnership )
m_bInTryClose = false;
m_aEndTryClosingCondition.set();
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex may be released inbetween in special case of impl_apiCallCountReachedNull()
impl_unregisterApiCall(false);
}
@@ -273,7 +273,7 @@ void CloseableLifeTimeManager::g_close_isNeedToCancelLongLastingCalls( bool bDel
m_bInTryClose = false;
m_aEndTryClosingCondition.set();
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex may be released inbetween in special case of impl_apiCallCountReachedNull()
impl_unregisterApiCall(false);
@@ -288,7 +288,7 @@ void CloseableLifeTimeManager::g_close_endTryClose_doClose()
m_bInTryClose = false;
m_aEndTryClosingCondition.set();
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex may be released inbetween in special case of impl_apiCallCountReachedNull()
impl_unregisterApiCall(false);
impl_doClose();
@@ -301,7 +301,7 @@ void CloseableLifeTimeManager::impl_setOwnership( bool bDeliverOwnership, bool b
void CloseableLifeTimeManager::impl_apiCallCountReachedNull()
{
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex will be released inbetween in impl_doClose()
if( m_pCloseable && m_bOwnership )
impl_doClose();
@@ -309,7 +309,7 @@ void CloseableLifeTimeManager::impl_apiCallCountReachedNull()
void CloseableLifeTimeManager::impl_doClose()
{
- //Mutex needs to be acquired exactly ones before calling impl_doClose()
+ //Mutex needs to be acquired exactly once before calling impl_doClose()
if(m_bClosed)
return; //behave as passive as possible, if disposed or closed already
@@ -363,7 +363,7 @@ void CloseableLifeTimeManager::impl_doClose()
void CloseableLifeTimeManager::g_addCloseListener( const uno::Reference< util::XCloseListener > & xListener )
{
osl::Guard< osl::Mutex > aGuard( m_aAccessMutex );
- //Mutex needs to be acquired exactly ones; will be released inbetween
+ //Mutex needs to be acquired exactly once; will be released inbetween
if( !impl_canStartApiCall() )
return;
//mutex is acquired
@@ -374,7 +374,7 @@ void CloseableLifeTimeManager::g_addCloseListener( const uno::Reference< util::X
bool CloseableLifeTimeManager::impl_canStartApiCall()
{
- //Mutex needs to be acquired exactly ones before calling this method
+ //Mutex needs to be acquired exactly once before calling this method
//the mutex will be released inbetween and reacquired
if( impl_isDisposed() )
@@ -401,14 +401,14 @@ bool CloseableLifeTimeManager::impl_canStartApiCall()
bool LifeTimeGuard::startApiCall(bool bLongLastingCall)
{
- //Mutex needs to be acquired exactly ones; will be released inbetween
+ //Mutex needs to be acquired exactly once; will be released inbetween
//mutex is required due to constructor of LifeTimeGuard
OSL_ENSURE( !m_bCallRegistered, "this method is only allowed ones" );
if(m_bCallRegistered)
return false;
- //Mutex needs to be acquired exactly ones; will be released inbetween
+ //Mutex needs to be acquired exactly once; will be released inbetween
if( !m_rManager.impl_canStartApiCall() )
return false;
//mutex is acquired
@@ -427,7 +427,7 @@ LifeTimeGuard::~LifeTimeGuard()
osl::MutexGuard g(m_rManager.m_aAccessMutex);
if(m_bCallRegistered)
{
- //Mutex needs to be acquired exactly ones
+ //Mutex needs to be acquired exactly once
//mutex may be released inbetween in special case of impl_apiCallCountReachedNull()
m_rManager.impl_unregisterApiCall(m_bLongLastingCallRegistered);
}