summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 08:48:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 11:26:58 +0000
commit3111d28aa89dbe5b15782cd288b2e2141bd16a95 (patch)
tree62343e0b11d83687d54e5a8798797ad44597c6ad
parent708bbdd34d97402556cf217d79b8ccec7ad47fdf (diff)
Be more fault tolerant here.
If we're already going to catch any uno::Exception, then we might as well accept failure of existance as well
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index cf91c1bf95..018f5195b2 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -866,10 +866,10 @@ uno::Reference< document::XDocumentInfo > SAL_CALL SfxBaseModel::getDocumentInfo
try {
rtl::OUString aName(RTL_CONSTASCII_USTRINGPARAM("MediaType"));
uno::Reference < beans::XPropertySet > xSet(
- getDocumentStorage(), uno::UNO_QUERY );
+ getDocumentStorage(), uno::UNO_QUERY_THROW );
uno::Any aMediaType = xSet->getPropertyValue( aName );
uno::Reference < beans::XPropertySet > xDocSet(
- m_pData->m_xDocumentInfo, uno::UNO_QUERY );
+ m_pData->m_xDocumentInfo, uno::UNO_QUERY_THROW );
xDocSet->setPropertyValue( aName, aMediaType );
} catch (uno::Exception &) {
//ignore