diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 2 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 2 | ||||
-rw-r--r-- | io/source/stm/opump.cxx | 16 | ||||
-rw-r--r-- | io/test/stm/datatest.cxx | 4 | ||||
-rw-r--r-- | io/test/stm/marktest.cxx | 4 | ||||
-rw-r--r-- | io/test/stm/pipetest.cxx | 2 | ||||
-rw-r--r-- | io/test/stm/pumptest.cxx | 2 | ||||
-rw-r--r-- | io/test/testcomponent.cxx | 6 | ||||
-rw-r--r-- | io/test/testconnection.cxx | 4 |
9 files changed, 21 insertions, 21 deletions
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 4920c5e2c991..f703d2d668ce 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -242,7 +242,7 @@ namespace io_acceptor } } } - catch (rtl::MalformedUriException & rEx) + catch (const rtl::MalformedUriException & rEx) { throw IllegalArgumentException( rEx.getMessage(), diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index bddbd260445b..e54000075b55 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -192,7 +192,7 @@ namespace stoc_connector } return r; } - catch (rtl::MalformedUriException & rEx) + catch (const rtl::MalformedUriException & rEx) { throw ConnectionSetupException(rEx.getMessage(), Reference< XInterface > ()); diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx index 1ea93a036174..409fe59869a4 100644 --- a/io/source/stm/opump.cxx +++ b/io/source/stm/opump.cxx @@ -144,7 +144,7 @@ void Pump::fireError( const Any & exception ) { static_cast< XStreamListener * > ( iter.next() )->error( exception ); } - catch ( RuntimeException &e ) + catch ( const RuntimeException &e ) { OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() ); @@ -173,7 +173,7 @@ void Pump::fireClose() { static_cast< XStreamListener * > ( iter.next() )->closed( ); } - catch ( RuntimeException &e ) + catch ( const RuntimeException &e ) { OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() ); @@ -191,7 +191,7 @@ void Pump::fireStarted() { static_cast< XStreamListener * > ( iter.next() )->started( ); } - catch ( RuntimeException &e ) + catch ( const RuntimeException &e ) { OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() ); @@ -208,7 +208,7 @@ void Pump::fireTerminated() { static_cast< XStreamListener * > ( iter.next() )->terminated(); } - catch ( RuntimeException &e ) + catch ( const RuntimeException &e ) { OString sMessage = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); OSL_ENSURE( !"com.sun.star.comp.stoc.Pump: unexpected exception during calling listeners", sMessage.getStr() ); @@ -297,15 +297,15 @@ void Pump::run() osl_yieldThread(); } } - catch ( IOException & e ) + catch ( const IOException & e ) { fireError( makeAny( e ) ); } - catch ( RuntimeException & e ) + catch ( const RuntimeException & e ) { fireError( makeAny( e ) ); } - catch ( Exception & e ) + catch ( const Exception & e ) { fireError( makeAny( e ) ); } @@ -313,7 +313,7 @@ void Pump::run() close(); fireClose(); } - catch ( com::sun::star::uno::Exception &e ) + catch ( const com::sun::star::uno::Exception &e ) { // we are the last on the stack. // this is to avoid crashing the program, when e.g. a bridge crashes diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx index acfc13288aa7..47b77697500e 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -213,7 +213,7 @@ sal_Int32 ODataStreamTest::test( } } } - catch( Exception & e ) + catch( const Exception & e ) { OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , o.getStr() ); @@ -796,7 +796,7 @@ sal_Int32 OObjectStreamTest::test( const OUString& TestName, } } - catch( Exception &e ) { + catch( const Exception &e ) { OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , o.getStr() ); } diff --git a/io/test/stm/marktest.cxx b/io/test/stm/marktest.cxx index 15166fa8eec8..ab1d771878ef 100644 --- a/io/test/stm/marktest.cxx +++ b/io/test/stm/marktest.cxx @@ -158,7 +158,7 @@ sal_Int32 OMarkableOutputStreamTest::test( } } - catch( Exception &e ) + catch( const Exception &e ) { OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , o.getStr() ); @@ -525,7 +525,7 @@ sal_Int32 OMarkableInputStreamTest::test( } } - catch( Exception & e ) + catch( const Exception & e ) { OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , o.getStr() ); diff --git a/io/test/stm/pipetest.cxx b/io/test/stm/pipetest.cxx index 49c431676bcb..ebb89e69c117 100644 --- a/io/test/stm/pipetest.cxx +++ b/io/test/stm/pipetest.cxx @@ -190,7 +190,7 @@ sal_Int32 OPipeTest::test( testMultithreading( TestObject ); } } - catch( Exception & e ) + catch( const Exception & e ) { OString s = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , s.getStr() ); diff --git a/io/test/stm/pumptest.cxx b/io/test/stm/pumptest.cxx index 54c212fbe414..c1bb3a37972f 100644 --- a/io/test/stm/pumptest.cxx +++ b/io/test/stm/pumptest.cxx @@ -174,7 +174,7 @@ sal_Int32 OPumpTest::test( testFunction( TestObject ); } } - catch( Exception & e ) + catch( const Exception & e ) { OString s = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ); BUILD_ERROR( 0 , s.getStr() ); diff --git a/io/test/testcomponent.cxx b/io/test/testcomponent.cxx index 29351b18dcfc..6e789dba6e10 100644 --- a/io/test/testcomponent.cxx +++ b/io/test/testcomponent.cxx @@ -93,7 +93,7 @@ int main (int argc, char **argv) xSimpleReg ); } } - catch( Exception &e ) { + catch( const Exception &e ) { printf( "%s\n" , OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US ).getStr() ); exit(1); @@ -119,7 +119,7 @@ int main (int argc, char **argv) aDllName, xSimpleReg ); } - catch( Exception & e ) + catch( Exception & ) { printf( "Couldn't reach dll %s\n" , szBuf ); exit(1); @@ -163,7 +163,7 @@ int main (int argc, char **argv) nNewHandle = xTest->test( OStringToOUString( argv[1] , RTL_TEXTENCODING_ASCII_US ) , x , nHandle ); } - catch( Exception & e ) { + catch( const Exception & e ) { OString o = OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ); printf( "testcomponent : uncaught exception %s\n" , o.getStr() ); exit(1); 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 } |