summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/clipb/WinClipboard.cxx
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-03-16 15:33:30 +0000
committerTino Rachui <tra@openoffice.org>2001-03-16 15:33:30 +0000
commit52dbacf7cd5f28ac400b6a60693a522d371d7609 (patch)
tree036bf3eab71b2df4aec1e306b7449000f5c141ce /dtrans/source/win32/clipb/WinClipboard.cxx
parent1434b5f4363053a8747a401d0f50b7c25c31b7ba (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/source/win32/clipb/WinClipboard.cxx')
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 294ab20bfd4d..a497ec4e4b07 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WinClipboard.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: tra $ $Date: 2001-03-16 08:59:04 $
+ * last change: $Author: tra $ $Date: 2001-03-16 16:32:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -121,7 +121,6 @@ CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceM
WeakComponentImplHelper4< XClipboardEx, XFlushableClipboard, XClipboardNotifier, XServiceInfo >( m_aCbListenerMutex ),
m_SrvMgr( rServiceManager )
{
- m_aCondition.set( );
m_pImpl.reset( new CWinClipbImpl( aClipboardName, this ) );
}
@@ -142,8 +141,6 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime
{
OSL_ASSERT( m_pImpl.get( ) );
- m_aCondition.wait( );
-
MutexGuard aGuard( m_aMutex );
OSL_ENSURE( !rBHelper.bDisposed, "Object is already disposed" );
@@ -164,14 +161,12 @@ void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTra
{
OSL_ASSERT( m_pImpl.get( ) );
- m_aCondition.wait( );
-
ClearableMutexGuard aGuard( m_aMutex );
OSL_ENSURE( !rBHelper.bDisposed, "Object is already disposed" );
if ( NULL != m_pImpl.get( ) )
- m_pImpl->setContents( xTransferable, xClipboardOwner, aGuard );
+ m_pImpl->setContents( xTransferable, xClipboardOwner );
}
//------------------------------------------------------------------------
@@ -196,8 +191,6 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
{
OSL_ASSERT( m_pImpl.get( ) );
- m_aCondition.wait( );
-
MutexGuard aGuard( m_aMutex );
OSL_ENSURE( !rBHelper.bDisposed, "Object is already disposed" );
@@ -230,8 +223,6 @@ sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeExce
void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
- m_aCondition.wait( );
-
MutexGuard aGuard( m_aMutex );
rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
}
@@ -243,8 +234,6 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi
void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
- m_aCondition.wait( );
-
MutexGuard aGuard( m_aMutex );
rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
}