From 7e7b112e6c00bcce0b339652748079cf7c9f1430 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 26 Apr 2014 15:17:07 +0200 Subject: Moved DomDocumentCache instances back into external function class * A global DomDocumentCache instance would require key prefixing * switched internal data structure to std::unordered_map for average constant time access --- src/transformation_facade.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/transformation_facade.cc') diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc index cb89263..38dfe93 100644 --- a/src/transformation_facade.cc +++ b/src/transformation_facade.cc @@ -15,8 +15,7 @@ namespace InputXSLT { TransformationFacade::TransformationFacade(const std::string& transformation): fs_context_(boost::filesystem::path(transformation).parent_path().string()), transformation_{}, - transformer_(), - document_cache_() { + transformer_() { const xalan::XalanDOMString customNamespace( "http://ExternalFunction.xalan-c++.xml.apache.org" ); @@ -36,7 +35,7 @@ TransformationFacade::TransformationFacade(const std::string& transformation): this->transformer_.installExternalFunction( customNamespace, xalan::XalanDOMString("read-directory"), - InputXSLT::FunctionReadDirectory(this->fs_context_, this->document_cache_) + InputXSLT::FunctionReadDirectory(this->fs_context_) ); this->transformer_.compileStylesheet( -- cgit v1.2.3