summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-07-06 08:16:29 +0000
committerOliver Bolte <obo@openoffice.org>2005-07-06 08:16:29 +0000
commit1d4093300900f5ea803f59812291e4c475dd126c (patch)
treeffe65fe5be99a183e7767732adf093263dda447f /dtrans
parentae8777979f756318ce82d07d3ccd046861fac48f (diff)
INTEGRATION: CWS vcl41 (1.12.12); FILE MERGED
2005/06/16 16:55:28 pl 1.12.12.1: #123063# fix a synchronization issue
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/X11/X11_clipboard.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/dtrans/source/X11/X11_clipboard.cxx b/dtrans/source/X11/X11_clipboard.cxx
index 3cd4855e4a5c..b73a2b9731ec 100644
--- a/dtrans/source/X11/X11_clipboard.cxx
+++ b/dtrans/source/X11/X11_clipboard.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: X11_clipboard.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2004-09-08 15:52:13 $
+ * last change: $Author: obo $ $Date: 2005-07-06 09:16:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -116,7 +116,7 @@ X11Clipboard::X11Clipboard( SelectionManager& rManager, Atom aSelection ) :
::com::sun::star::datatransfer::clipboard::XClipboardNotifier,
::com::sun::star::lang::XServiceInfo,
::com::sun::star::lang::XInitialization
- >( m_aMutex ),
+ >( rManager.getMutex() ),
m_rSelectionManager( rManager ),
m_xSelectionManager( & rManager ),
@@ -160,7 +160,7 @@ X11Clipboard::~X11Clipboard()
void X11Clipboard::fireChangedContentsEvent()
{
- ClearableMutexGuard aGuard( m_aMutex );
+ ClearableMutexGuard aGuard( m_rSelectionManager.getMutex() );
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "X11Clipboard::fireChangedContentsEvent for %s (%d listeners)\n",
OUStringToOString( m_rSelectionManager.getString( m_aSelection ), RTL_TEXTENCODING_ISO_8859_1 ).getStr(), m_aListeners.size() );
@@ -181,7 +181,7 @@ void X11Clipboard::fireChangedContentsEvent()
void X11Clipboard::clearContents()
{
- ClearableMutexGuard aGuard(m_aMutex);
+ ClearableMutexGuard aGuard(m_rSelectionManager.getMutex());
// protect against deletion during outside call
Reference< XClipboard > xThis( static_cast<XClipboard*>(this));
// copy member references on stack so they can be called
@@ -205,7 +205,7 @@ void X11Clipboard::clearContents()
Reference< XTransferable > SAL_CALL X11Clipboard::getContents()
throw(RuntimeException)
{
- MutexGuard aGuard(m_aMutex);
+ MutexGuard aGuard(m_rSelectionManager.getMutex());
if( ! m_aContents.is() )
m_aContents = new X11Transferable( SelectionManager::get(), static_cast< OWeakObject* >(this), m_aSelection );
@@ -220,7 +220,7 @@ void SAL_CALL X11Clipboard::setContents(
throw(RuntimeException)
{
// remember old values for callbacks before setting the new ones.
- ClearableMutexGuard aGuard(m_aMutex);
+ ClearableMutexGuard aGuard(m_rSelectionManager.getMutex());
Reference< XClipboardOwner > oldOwner( m_aOwner );
m_aOwner = xClipboardOwner;
@@ -268,7 +268,7 @@ sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities()
void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
{
- MutexGuard aGuard( m_aMutex );
+ MutexGuard aGuard( m_rSelectionManager.getMutex() );
m_aListeners.push_back( listener );
}
@@ -277,7 +277,7 @@ void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardLis
void SAL_CALL X11Clipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
{
- MutexGuard aGuard( m_aMutex );
+ MutexGuard aGuard( m_rSelectionManager.getMutex() );
m_aListeners.remove( listener );
}