diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 11:34:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 15:27:33 +0200 |
commit | 574335a1ad68bdde15a67607f2460ef3828f6c3c (patch) | |
tree | 7318c52818280eb4c6d9e4b2a44337ab21260a35 /sw/source/uibase/dochdl | |
parent | dd8f5e22356349345c35932fcc6b75dee503f834 (diff) |
use SolarMutexGuard
instead of manual acquire/release
Change-Id: Ieb0a2c269b46004a80f77c51ce947b0daf015644
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index de70f27006b9..8636db60d9ce 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -233,7 +233,7 @@ SwTransferable::SwTransferable( SwWrtShell& rSh ) SwTransferable::~SwTransferable() { - Application::GetSolarMutex().acquire(); + SolarMutexGuard aSolarGuard; // the DDELink still needs the WrtShell! if( m_xDdeLink.Is() ) @@ -275,8 +275,6 @@ SwTransferable::~SwTransferable() delete m_pBookmark; m_eBufferType = TransferBufferType::NONE; - - Application::GetSolarMutex().release(); } static SwDoc * lcl_GetDoc(SwDocFac & rDocFac) |