diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-29 18:02:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-29 18:37:51 +0200 |
commit | b48e90799d85e25092fa07ee47bb5a94588d4c82 (patch) | |
tree | e8f3d600f7aa73c2fa23c8ded05e70cf70fe1542 /include/vcl/threadex.hxx | |
parent | 0b23ac2c9d36c89137feeb82d0aed7a8628a53b7 (diff) |
vcl: std::auto_ptr -> std::unique_ptr
Change-Id: I5a08186b465b15311c63784506a0ca0e119286e2
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r-- | include/vcl/threadex.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index f25a3cc63c46..b2f24d65dcec 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -71,7 +71,7 @@ public: static ResultT exec( FuncT const& func ) { typedef GenericSolarThreadExecutor<FuncT, ResultT> ExecutorT; - ::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); + ::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); pExecutor->execute(); if (pExecutor->m_exc.hasValue()) ::cppu::throwException( pExecutor->m_exc ); @@ -108,7 +108,7 @@ public: static void exec( FuncT const& func ) { typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT; - ::std::auto_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); + ::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) ); pExecutor->execute(); if (pExecutor->m_exc.hasValue()) ::cppu::throwException( pExecutor->m_exc ); |