From 8ebea90f5cee70654ab9f1c19ed4f89dfc8ffb25 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 14 Sep 2014 19:49:15 +0200 Subject: 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 --- src/support/error/error_capacitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/support/error/error_capacitor.cc') diff --git a/src/support/error/error_capacitor.cc b/src/support/error/error_capacitor.cc index cc7dd01..22ec45d 100644 --- a/src/support/error/error_capacitor.cc +++ b/src/support/error/error_capacitor.cc @@ -4,7 +4,7 @@ namespace InputXSLT { ErrorCapacitor::ErrorCapacitor(ErrorMultiplexer* multiplexer): ErrorMultiplexer::receiver(multiplexer), - error_cache_(new error_cache()) { } + error_cache_(std::make_unique()) { } void ErrorCapacitor::discharge() { if ( !this->error_cache_->empty() ) { @@ -21,7 +21,7 @@ void ErrorCapacitor::receive( } } -ErrorCapacitor::exception::exception(error_cache_ptr ptr): +ErrorCapacitor::exception::exception(std::unique_ptr ptr): error_cache_(std::move(ptr)) { } auto ErrorCapacitor::exception::operator*() const -> const error_cache& { -- cgit v1.2.3