summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/ole/ndole.cxx11
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx11
2 files changed, 15 insertions, 7 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index b9049d7f9cbd..99b3f777fa9d 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -192,7 +192,7 @@ SwEmbedObjectLink::~SwEmbedObjectLink()
xObject->changeState( nState );
}
}
- catch ( uno::Exception& )
+ catch (const uno::Exception&)
{
}
}
@@ -357,7 +357,7 @@ bool SwOLENode::SavePersistentData()
// "unload" object
aOLEObj.xOLERef->changeState( embed::EmbedStates::LOADED );
}
- catch ( uno::Exception& )
+ catch (const uno::Exception&)
{
}
}
@@ -549,8 +549,9 @@ bool SwOLENode::UpdateLinkURL_Impl()
if ( nCurState != embed::EmbedStates::LOADED )
xObj->changeState( nCurState );
}
- catch( uno::Exception& )
- {}
+ catch (const uno::Exception&)
+ {
+ }
}
if ( !bResult )
@@ -873,7 +874,7 @@ bool SwOLEObj::UnloadObject( uno::Reference< embed::XEmbeddedObject > xObj, cons
// setting object to loaded state will remove it from cache
xObj->changeState( embed::EmbedStates::LOADED );
}
- catch ( uno::Exception& )
+ catch (const uno::Exception&)
{
bRet = false;
}
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 7958bf7eb315..e8b505504532 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -4522,8 +4522,15 @@ void DocxAttributeOutput::WritePostponedMath(const SwOLENode* pPostponedMath)
{
uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode*>(pPostponedMath)->GetOLEObj().GetOleRef());
if (embed::EmbedStates::LOADED == xObj->getCurrentState())
- { // must be running so there is a Component
- xObj->changeState(embed::EmbedStates::RUNNING);
+ {
+ // must be running so there is a Component
+ try
+ {
+ xObj->changeState(embed::EmbedStates::RUNNING);
+ }
+ catch (const uno::Exception&)
+ {
+ }
}
uno::Reference< uno::XInterface > xInterface( xObj->getComponent(), uno::UNO_QUERY );
if (!xInterface.is())