diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-30 11:05:16 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-11-30 11:27:42 +0900 |
commit | 7113c7152d1ec875e65e97548fa6243fc83fbc53 (patch) | |
tree | 9fa8fb3e89086e2ed06c8f210ed519331b254414 /binaryurp/source/writer.cxx | |
parent | 2b2f6abfcc83c4701b42c92c6209a1052324f0a5 (diff) |
catch by constant reference
Diffstat (limited to 'binaryurp/source/writer.cxx')
-rw-r--r-- | binaryurp/source/writer.cxx | 6 |
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( |