diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-16 00:26:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-16 09:15:37 +0100 |
commit | 43afab8818d7bca24897ddee9b74fbeb74bf4c56 (patch) | |
tree | 97b161e5cc5dbe12129681365dc2c6f2ed745926 /xmloff/source/meta | |
parent | 9e98f12db714b8a1a8cc64234bb4eea26e936166 (diff) |
catch by const reference
Diffstat (limited to 'xmloff/source/meta')
-rw-r--r-- | xmloff/source/meta/xmlmetai.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/meta/xmlmetai.cxx b/xmloff/source/meta/xmlmetai.cxx index 4e2024c3cf5e..a88952289658 100644 --- a/xmloff/source/meta/xmlmetai.cxx +++ b/xmloff/source/meta/xmlmetai.cxx @@ -147,9 +147,9 @@ lcl_initDocumentProperties(SvXMLImport & rImport, xDocProps->getAutoloadURL())); SvXMLMetaDocumentContext::setBuildId( xDocProps->getGenerator(), rImport.getImportInfo()); - } catch (uno::RuntimeException) { + } catch (const uno::RuntimeException&) { throw; - } catch (uno::Exception & e) { + } catch (const uno::Exception& e) { throw lang::WrappedTargetRuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "SvXMLMetaDocumentContext::initDocumentProperties: " @@ -181,9 +181,9 @@ lcl_initGenerator(SvXMLImport & rImport, xPath->eval(xDoc.get(), expr), uno::UNO_SET_THROW); OUString const value(xObj->getString()); SvXMLMetaDocumentContext::setBuildId(value, rImport.getImportInfo()); - } catch (uno::RuntimeException) { + } catch (const uno::RuntimeException&) { throw; - } catch (uno::Exception & e) { + } catch (const uno::Exception& e) { throw lang::WrappedTargetRuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "SvXMLMetaDocumentContext::initGenerator: exception")), @@ -312,7 +312,7 @@ void SvXMLMetaDocumentContext::setBuildId(::rtl::OUString const& i_rBuildId, con xImportInfo->setPropertyValue( aPropName, uno::makeAny( sBuildId ) ); } } - catch( uno::Exception& ) + catch(const uno::Exception&) { } } |