diff options
author | Adrian Kummerlaender | 2014-06-28 09:55:58 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-06-28 09:55:58 +0200 |
commit | cd2a6c17ab1108e2bf01125b65292014c002db95 (patch) | |
tree | 74a1da84ec6ea4e0e9afb12770ceeab506699371 /src | |
parent | 53f89ed5e242f3c5e662a0d7535901f423a7e98f (diff) | |
download | InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar.gz InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar.bz2 InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar.lz InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar.xz InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.tar.zst InputXSLT-cd2a6c17ab1108e2bf01125b65292014c002db95.zip |
Removed unnecessary TransformationFacade destructor
* outdated documentation led me to believe that one has to free compiled stylesheets and input sources manually
** while xalan::XalanTransformer offers the required methods it also calls them by itself on destruction
Diffstat (limited to 'src')
-rw-r--r-- | src/transformation_facade.cc | 10 | ||||
-rw-r--r-- | src/transformation_facade.h | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc index 93d14ea..97b17bb 100644 --- a/src/transformation_facade.cc +++ b/src/transformation_facade.cc @@ -66,16 +66,6 @@ TransformationFacade::TransformationFacade( errorCapacitor.discharge(); } -TransformationFacade::~TransformationFacade() { - this->transformer_.destroyParsedSource( - this->input_ - ); - - this->transformer_.destroyStylesheet( - this->transformation_ - ); -} - WarningCapacitor::warning_cache_ptr TransformationFacade::getCachedWarnings() { return this->warning_capacitor_.discharge(); } diff --git a/src/transformation_facade.h b/src/transformation_facade.h index ca72c90..00a5785 100644 --- a/src/transformation_facade.h +++ b/src/transformation_facade.h @@ -20,6 +20,8 @@ class TransformationFacade { public: typedef std::unique_ptr<TransformationFacade> ptr; + class input; + template <typename... Arguments> static ptr try_create( const std::function<void(const ErrorCapacitor::error_cache&)>&, @@ -40,8 +42,6 @@ class TransformationFacade { IncludeEntityResolver* ); - ~TransformationFacade(); - template <typename Target> void generate(Target&); |