summaryrefslogtreecommitdiffstats
path: root/desktop/source/offacc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-06 00:19:44 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-06 00:20:08 +0900
commit877da827a7aab5a7fb6bc3f84c2d5a48cac381ff (patch)
tree1e7ffcfc4020227cd1662cffb8ad894e3398e5a2 /desktop/source/offacc
parentadd support for printing selections (diff)
downloadcore-877da827a7aab5a7fb6bc3f84c2d5a48cac381ff.tar.gz
core-877da827a7aab5a7fb6bc3f84c2d5a48cac381ff.zip
catch exception by constant reference
Diffstat (limited to 'desktop/source/offacc')
-rw-r--r--desktop/source/offacc/acceptor.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}
}