diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-15 13:51:29 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-15 13:52:23 +0900 |
commit | 0f44079ce20ece1931c40f62584013ac6d1668e4 (patch) | |
tree | e18d86d4feac4d33f81f03eddf12d53c4391eba9 /io/test/testconnection.cxx | |
parent | 535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff) |
catch exception by constant reference
Diffstat (limited to 'io/test/testconnection.cxx')
-rw-r--r-- | io/test/testconnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/test/testconnection.cxx b/io/test/testconnection.cxx index b6e07a0f44fe..708daf3283de 100644 --- a/io/test/testconnection.cxx +++ b/io/test/testconnection.cxx @@ -97,7 +97,7 @@ void MyThread::run() { m_rConnection = m_rAcceptor->accept( m_sConnectionDescription ); } - catch ( Exception &e) + catch ( const Exception &e) { OString tmp= OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); printf( "Exception was thrown by acceptor thread: %s\n", tmp.getStr() ); @@ -261,7 +261,7 @@ int SAL_CALL main( int argc, char * argv[] ) rAcceptor->accept( OUString(RTL_CONSTASCII_USTRINGPARAM("socket,host=localhost,port=2001")) ); OSL_FAIL( "already existing exception expected" ); } - catch( AlreadyAcceptingException & e) + catch( AlreadyAcceptingException & ) { // everything is fine } |