summaryrefslogtreecommitdiff
path: root/xmlscript/test
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-01-09 03:16:33 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-01-09 03:17:20 +0900
commitb35c0ae4ffce43b881d66efe74a19f1bf6299331 (patch)
tree7afefa031973519717e8cb9812ade85de444df02 /xmlscript/test
parentbc2a59e09d1a554b2d55412d1f10a3fa1fe86086 (diff)
catch exception by constant reference
Diffstat (limited to 'xmlscript/test')
-rw-r--r--xmlscript/test/imexp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx
index af53c972364e..eadedce6b0ff 100644
--- a/xmlscript/test/imexp.cxx
+++ b/xmlscript/test/imexp.cxx
@@ -88,7 +88,7 @@ Reference< XComponentContext > createInitialComponentContext(
return defaultBootstrap_InitialComponentContext( unorc );
}
- catch( Exception& rExc )
+ catch( const Exception& rExc )
{
OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
OSL_FAIL( aStr.getStr() );
@@ -213,7 +213,7 @@ void MyApp::Main()
exportToFile( aParam2.getStr(), xModel, xContext );
}
}
- catch (xml::sax::SAXException & rExc)
+ catch (const xml::sax::SAXException & rExc)
{
OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
uno::Exception exc;
@@ -224,7 +224,7 @@ void MyApp::Main()
}
OSL_FAIL( aStr.getStr() );
}
- catch (uno::Exception & rExc)
+ catch (const uno::Exception & rExc)
{
OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
OSL_FAIL( aStr.getStr() );