diff options
author | Adrian Kummerlaender | 2014-09-14 19:49:15 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-09-14 19:49:15 +0200 |
commit | 8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25 (patch) | |
tree | 55997e02cbcaa5cf2d961dc33a1ff7ca2981ec95 /src/transformer_facade.cc | |
parent | ced9f340e88e6011376fb65ae81bf2f2b327ecc0 (diff) | |
download | InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar.gz InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar.bz2 InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar.lz InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar.xz InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.tar.zst InputXSLT-8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25.zip |
Switched member initialization to std::make_unique
* i.e. InputXSLT now requires a C++14 supporting compiler / standard library implementation
* this was done while enabling the StreamInputSource to handle all kinds of streams
** this in turn is required to enable e.g. stdin as transformation source while preserving the correct filesystem context
Diffstat (limited to 'src/transformer_facade.cc')
-rw-r--r-- | src/transformer_facade.cc | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/transformer_facade.cc b/src/transformer_facade.cc index 5bfb71e..0215e13 100644 --- a/src/transformer_facade.cc +++ b/src/transformer_facade.cc @@ -33,19 +33,17 @@ std::unique_ptr<xalan::FormatterToXML> augmentFormatterToXML( xalan::XalanDOMString outputDoctypeSystem; xalan::XalanDOMString outputStandalone; - return std::unique_ptr<xalan::FormatterToXML>( - new xalan::FormatterToXML( - *(formatter.getWriter()), - stylesheetRoot->getOutputVersion(outputVersion), - stylesheetRoot->getOutputIndent(), - xalan::FormatterToXML::eDefaultIndentAmount, - stylesheetRoot->getOutputEncoding(outputEncoding), - stylesheetRoot->getOutputMediaType(outputMediaType), - stylesheetRoot->getOutputDoctypeSystem(outputDoctypeSystem), - stylesheetRoot->getOutputDoctypePublic(outputDoctypePublic), - !stylesheetRoot->getOmitOutputXMLDecl(), - stylesheetRoot->getOutputStandalone(outputStandalone) - ) + return std::make_unique<xalan::FormatterToXML>( + *(formatter.getWriter()), + stylesheetRoot->getOutputVersion(outputVersion), + stylesheetRoot->getOutputIndent(), + xalan::FormatterToXML::eDefaultIndentAmount, + stylesheetRoot->getOutputEncoding(outputEncoding), + stylesheetRoot->getOutputMediaType(outputMediaType), + stylesheetRoot->getOutputDoctypeSystem(outputDoctypeSystem), + stylesheetRoot->getOutputDoctypePublic(outputDoctypePublic), + !stylesheetRoot->getOmitOutputXMLDecl(), + stylesheetRoot->getOutputStandalone(outputStandalone) ); } |