summaryrefslogtreecommitdiff
path: root/io/test/stm
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:51:29 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-12-15 13:52:23 +0900
commit0f44079ce20ece1931c40f62584013ac6d1668e4 (patch)
treee18d86d4feac4d33f81f03eddf12d53c4391eba9 /io/test/stm
parent535e37abdb43cf41990fcbd0ef85315b2413c4e3 (diff)
catch exception by constant reference
Diffstat (limited to 'io/test/stm')
-rw-r--r--io/test/stm/datatest.cxx4
-rw-r--r--io/test/stm/marktest.cxx4
-rw-r--r--io/test/stm/pipetest.cxx2
-rw-r--r--io/test/stm/pumptest.cxx2
4 files changed, 6 insertions, 6 deletions
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() );