From 8f05c7de54336daefb214a754de35367098b6510 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 7 Jul 2014 22:25:03 +0200 Subject: Implemented custom xercesc::DOMDocument deleter * pointers to xercesc::DOMDocument were manually released ** this is now solved using a custom deleter for the appropriate std::unqiue_ptr template specialization * added matching factory method to DomDocumentCache * updated external function implementations accordingly ** "constructDocument" is now expected to return a DomDocumentCache::document_ptr instance * updated TransformerFacade accordingly * this change was implemented to get rid of the manual memory management required by xalan / xerces --- ixslt.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ixslt.cc') diff --git a/ixslt.cc b/ixslt.cc index 048f990..610d28f 100644 --- a/ixslt.cc +++ b/ixslt.cc @@ -100,10 +100,10 @@ bool generate( std::basic_ostream& target, Arguments&&... arguments ) { - InputXSLT::TransformerFacade transformer(resolver); - WarningGuard guard(&transformer); - try { + InputXSLT::TransformerFacade transformer(resolver); + WarningGuard guard(&transformer); + xalan::XalanStdOutputStream output(target); xalan::XalanOutputStreamPrintWriter writer(output); xalan::FormatterToXML formatter(writer); -- cgit v1.2.3