summaryrefslogtreecommitdiff
path: root/binaryurp/source/bridge.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-11-30 11:05:16 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-11-30 11:27:42 +0900
commit7113c7152d1ec875e65e97548fa6243fc83fbc53 (patch)
tree9fa8fb3e89086e2ed06c8f210ed519331b254414 /binaryurp/source/bridge.cxx
parent2b2f6abfcc83c4701b42c92c6209a1052324f0a5 (diff)
catch by constant reference
Diffstat (limited to 'binaryurp/source/bridge.cxx')
-rw-r--r--binaryurp/source/bridge.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index 6e97406d4b19..b491a2adc77f 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -259,7 +259,7 @@ void Bridge::terminate() {
}
try {
connection_->close();
- } catch (css::io::IOException & e) {
+ } catch (const css::io::IOException & e) {
SAL_INFO("binaryurp", "caught IO exception '" << e.Message << '\'');
}
assert(w.is());
@@ -289,7 +289,7 @@ void Bridge::terminate() {
(*i)->disposing(
css::lang::EventObject(
static_cast< cppu::OWeakObject * >(this)));
- } catch (css::uno::RuntimeException & e) {
+ } catch (const css::uno::RuntimeException & e) {
SAL_WARN(
"binaryurp", "caught runtime exception '" << e.Message << '\'');
}
@@ -505,10 +505,10 @@ void Bridge::revokeProxy(Proxy & proxy) {
void Bridge::freeProxy(Proxy & proxy) {
try {
makeReleaseCall(proxy.getOid(), proxy.getType());
- } catch (css::uno::RuntimeException & e) {
+ } catch (const css::uno::RuntimeException & e) {
SAL_INFO(
"binaryurp", "caught runtime exception '" << e.Message << '\'');
- } catch (std::exception & e) {
+ } catch (const std::exception & e) {
SAL_WARN("binaryurp", "caught C++ exception '" << e.what() << '\'');
}
bool unused;
@@ -660,7 +660,7 @@ void Bridge::handleCommitChangeReply(
bool ccMode = true;
try {
throwException(exception, returnValue);
- } catch (css::bridge::InvalidProtocolChangeException &) {
+ } catch (const css::bridge::InvalidProtocolChangeException &) {
ccMode = false;
}
if (ccMode) {