Kaydet (Commit) 87331efa authored tarafından Michael Stahl's avatar Michael Stahl

sc: fix locking in ScXMLConsolidationContext

Essentially revert commit 4fa05ecc,
plus move the unlock to the dtor for more RAII-ness.

Change-Id: Ie5a9cc183626e3f5b005348606bffa69c4be4f7f
üst 67a9ae4d
......@@ -38,7 +38,7 @@ ScXMLConsolidationContext::ScXMLConsolidationContext(
bLinkToSource( false ),
bTargetAddr(false)
{
ScXMLImport::MutexGuard aGuard(GetScImport());
rImport.LockSolarMutex();
if( !xAttrList.is() ) return;
sal_Int16 nAttrCount = xAttrList->getLength();
......@@ -78,6 +78,7 @@ ScXMLConsolidationContext::ScXMLConsolidationContext(
ScXMLConsolidationContext::~ScXMLConsolidationContext()
{
GetScImport().UnlockSolarMutex();
}
SvXMLImportContext *ScXMLConsolidationContext::CreateChildContext(
......@@ -136,7 +137,6 @@ void ScXMLConsolidationContext::EndElement()
if( pDoc )
pDoc->SetConsolidateDlgData( &aConsParam );
}
GetScImport().UnlockSolarMutex();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment