summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-12 22:08:10 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-12 22:08:10 +0200
commit23e28754730f5b864fd0e7475ac2596b2b5899cf (patch)
tree29848ee6f2966ba4ec9ea4a1f3d3d15d14556c1b /xmlhelp
parentc1aeceb363f188bc6a0de6c5cc1f7a6371b149b4 (diff)
XML_Parse returns enum XML_Status
Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/treeview/tvread.cxx6
1 files changed, 3 insertions, 3 deletions
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;