From 877da827a7aab5a7fb6bc3f84c2d5a48cac381ff Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 6 Dec 2011 00:19:44 +0900 Subject: catch exception by constant reference --- desktop/source/offacc/acceptor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/source/offacc') diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index 42897a17cc14..caa0564f9f8b 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -142,7 +142,7 @@ void SAL_CALL Acceptor::run() rtl::OUString() ,m_aProtocol ,rConnection ,rInstanceProvider ); osl::MutexGuard g(m_aMutex); m_bridges.add(rBridge); - } catch (Exception&) { + } catch (const Exception&) { // connection failed... // something went wrong during connection setup. // just wait for a new connection to accept @@ -241,7 +241,7 @@ Reference< XInterface > Acceptor::impl_getInstance( const Reference< XMultiServi { try { return (XComponent*) new Acceptor( aFactory ); - } catch ( Exception& ) { + } catch ( const Exception& ) { return (XComponent*) NULL; } } -- cgit