diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 14:47:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-24 14:47:38 +0000 |
commit | fa646ceffa3dfd04ea7cc45733e4fa368ff3dd13 (patch) | |
tree | 954c2fceebb1d5a2d2772e7dfe5c8658609c0df8 /unoxml/source/dom/documentbuilder.cxx | |
parent | 5931226ad5b16f1a64c4fb0bbb33d979dfa822eb (diff) |
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'unoxml/source/dom/documentbuilder.cxx')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 6c9d52b955b9..b65fffc632da 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -360,17 +360,9 @@ namespace DOM return Reference< XDocument >(static_cast< CDocument* >(CNode::get((xmlNodePtr)pDoc))); } - Reference< XDocument > SAL_CALL CDocumentBuilder::parseSource(const InputSource& is) + Reference< XDocument > SAL_CALL CDocumentBuilder::parseSource(const InputSource& /*is*/) throw (RuntimeException, SAXParseException, IOException) { - // if there is an encoding specified in the input source, use it - xmlCharEncoding enc = XML_CHAR_ENCODING_NONE; - if (is.sEncoding.getLength() > 0) { - OString oEncstr = OUStringToOString(is.sEncoding, RTL_TEXTENCODING_UTF8); - char *encstr = (char*) oEncstr.getStr(); - enc = xmlParseCharEncoding(encstr); - } - // set up parser context xmlParserCtxtPtr ctxt = xmlNewParserCtxt(); // register error functions to prevent errors being printed |