diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-06 00:19:44 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-06 00:20:08 +0900 |
commit | 877da827a7aab5a7fb6bc3f84c2d5a48cac381ff (patch) | |
tree | 1e7ffcfc4020227cd1662cffb8ad894e3398e5a2 /desktop/source/migration | |
parent | ac9f72d9627f979f1e4bd0490578aba1ede577d4 (diff) |
catch exception by constant reference
Diffstat (limited to 'desktop/source/migration')
-rw-r--r-- | desktop/source/migration/services/oo3extensionmigration.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx index af609ac8c7e7..1348a1a7c445 100644 --- a/desktop/source/migration/services/oo3extensionmigration.cxx +++ b/desktop/source/migration/services/oo3extensionmigration.cxx @@ -272,10 +272,10 @@ bool OO3ExtensionMigration::scanDescriptionXml( const ::rtl::OUString& sDescript if ( xNode.is() ) aExtIdentifier = xNode->getNodeValue(); } - catch ( xml::xpath::XPathException& ) + catch ( const xml::xpath::XPathException& ) { } - catch ( xml::dom::DOMException& ) + catch ( const xml::dom::DOMException& ) { } } @@ -297,10 +297,10 @@ bool OO3ExtensionMigration::scanDescriptionXml( const ::rtl::OUString& sDescript } } } - catch ( ucb::CommandAbortedException& ) + catch ( const ucb::CommandAbortedException& ) { } - catch ( uno::RuntimeException& ) + catch ( const uno::RuntimeException& ) { } @@ -334,8 +334,8 @@ bool OO3ExtensionMigration::migrateExtension( const ::rtl::OUString& sSourceDir { m_xExtensionManager = deployment::ExtensionManager::get( m_ctx ); } - catch ( ucb::CommandFailedException & ){} - catch ( uno::RuntimeException & ) {} + catch ( const ucb::CommandFailedException & ){} + catch ( const uno::RuntimeException & ) {} } if ( m_xExtensionManager.is() ) @@ -355,13 +355,13 @@ bool OO3ExtensionMigration::migrateExtension( const ::rtl::OUString& sSourceDir if ( xPackage.is() ) return true; } - catch ( ucb::CommandFailedException& ) + catch ( const ucb::CommandFailedException& ) { } - catch ( ucb::CommandAbortedException& ) + catch ( const ucb::CommandAbortedException& ) { } - catch ( lang::IllegalArgumentException& ) + catch ( const lang::IllegalArgumentException& ) { } } |