From 33de587e95dddfc8e3c89b84f90b3d1bca823dae Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Tue, 17 Mar 2015 12:56:54 +0530 Subject: tdf#88230: cleanup solar mutex yielding Use SolarMutexReleaser, instead. Change-Id: I276459c42b688813ea168d6fc80466a07a5ecba4 Signed-off-by: Stephan Bergmann --- cui/source/dialogs/colorpicker.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 13fe8351ece6..798597ba6bdc 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -204,18 +204,15 @@ void HexColorControl::Paste() { ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xDataObj; - const sal_uInt32 nRef = Application::ReleaseSolarMutex(); - try { + SolarMutexReleaser aReleaser; xDataObj = aClipboard->getContents(); } catch( const ::com::sun::star::uno::Exception& ) { } - Application::AcquireSolarMutex( nRef ); - if ( xDataObj.is() ) { ::com::sun::star::datatransfer::DataFlavor aFlavor; -- cgit