summaryrefslogtreecommitdiff
path: root/xmlscript/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 11:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 14:38:14 +0200
commit5e028ad5dccc6ff1a9250baf2196f7a2f235e314 (patch)
tree6c6992e6fccf43b60141fb6ae32a6ad8e37cb84d /xmlscript/test
parentf905d6056606234ba53a26a3e4105ad3560d4b7b (diff)
simplify some string handling in tracing calls
Change-Id: I0fb76562429e691400a02216019c7f96791cf9b3 Reviewed-on: https://gerrit.libreoffice.org/39159 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript/test')
-rw-r--r--xmlscript/test/imexp.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx
index 2c8521015255..0159e734bba2 100644
--- a/xmlscript/test/imexp.cxx
+++ b/xmlscript/test/imexp.cxx
@@ -72,8 +72,7 @@ Reference< XComponentContext > createInitialComponentContext(
catch( const Exception& rExc )
{
- OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
- OSL_FAIL( aStr.getStr() );
+ SAL_WARN( "xmlscript", rExc.Message );
}
return xContext;
@@ -186,19 +185,18 @@ void MyApp::Main()
}
catch (const xml::sax::SAXException & rExc)
{
- OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
+ OUString aStr( rExc.Message );
uno::Exception exc;
if (rExc.WrappedException >>= exc)
{
aStr += " >>> ";
- aStr += OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US );
+ aStr += exc.Message;
}
- OSL_FAIL( aStr.getStr() );
+ SAL_WARN( "xmlscript", aStr );
}
catch (const uno::Exception & rExc)
{
- OString aStr( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) );
- OSL_FAIL( aStr.getStr() );
+ SAL_WARN( "xmlscript", rExc.Message );
}
Reference< lang::XComponent > xComp( xContext, UNO_QUERY );