summaryrefslogtreecommitdiffstats
path: root/binaryurp/source/writer.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/writer.cxx
parentintroduced Date::IsValidDate() and Date::Normalize() (diff)
downloadcore-7113c7152d1ec875e65e97548fa6243fc83fbc53.tar.gz
core-7113c7152d1ec875e65e97548fa6243fc83fbc53.zip
catch by constant reference
Diffstat (limited to 'binaryurp/source/writer.cxx')
-rw-r--r--binaryurp/source/writer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx
index 42a238879bf2..5aca57b108eb 100644
--- a/binaryurp/source/writer.cxx
+++ b/binaryurp/source/writer.cxx
@@ -189,11 +189,11 @@ void Writer::run() {
}
}
}
- } catch (css::uno::Exception & e) {
+ } catch (const css::uno::Exception & e) {
OSL_TRACE(
OSL_LOG_PREFIX "caught UNO exception '%s'",
rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
- } catch (std::exception & e) {
+ } catch (const std::exception & e) {
OSL_TRACE(OSL_LOG_PREFIX "caught C++ exception '%s'", e.what());
}
bridge_->terminate();
@@ -447,7 +447,7 @@ void Writer::sendMessage(std::vector< unsigned char > const & buffer) {
rtl_copyMemory(s.getArray() + s.getLength() - k, p, k);
try {
bridge_->getConnection()->write(s);
- } catch (css::io::IOException & e) {
+ } catch (const css::io::IOException & e) {
css::uno::Any exc(cppu::getCaughtException());
throw css::lang::WrappedTargetRuntimeException(
(rtl::OUString(