From 23e28754730f5b864fd0e7475ac2596b2b5899cf Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 12 Jul 2012 22:08:10 +0200 Subject: XML_Parse returns enum XML_Status Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b --- xmlhelp/source/treeview/tvread.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 0510ebf838c0..8357a3bc7f0f 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -528,9 +528,9 @@ TVChildTarget::TVChildTarget( const Reference< XMultiServiceFactory >& xMSF ) data_handler); XML_SetUserData( parser,&pTVDom ); // does not return this - int parsed = XML_Parse( parser,s,int( len ),j==0 ); - (void)parsed; - OSL_ENSURE( parsed, "TVChildTarget::TVChildTarget(): Tree file parsing failed" ); + XML_Status const parsed = XML_Parse(parser, s, int(len), j==0); + SAL_WARN_IF(XML_STATUS_ERROR == parsed, "xmlhelp", + "TVChildTarget::TVChildTarget(): Tree file parsing failed"); XML_ParserFree( parser ); delete[] s; -- cgit