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.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/support/error/error_capacitor.h') diff --git a/src/support/error/error_capacitor.h b/src/support/error/error_capacitor.h index 1c225e9..03f155d 100644 --- a/src/support/error/error_capacitor.h +++ b/src/support/error/error_capacitor.h @@ -12,7 +12,6 @@ class ErrorCapacitor : public ErrorMultiplexer::receiver { class exception; typedef std::vector error_cache; - typedef std::unique_ptr error_cache_ptr; ErrorCapacitor(ErrorMultiplexer*); @@ -24,18 +23,18 @@ class ErrorCapacitor : public ErrorMultiplexer::receiver { ); private: - error_cache_ptr error_cache_; + std::unique_ptr error_cache_; }; class ErrorCapacitor::exception { public: - exception(error_cache_ptr); + exception(std::unique_ptr); const error_cache& operator*() const; private: - error_cache_ptr error_cache_; + std::unique_ptr error_cache_; }; -- cgit v1.2.3