summaryrefslogtreecommitdiff
path: root/include/vcl/threadex.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-29 18:02:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-29 18:37:51 +0200
commitb48e90799d85e25092fa07ee47bb5a94588d4c82 (patch)
treee8f3d600f7aa73c2fa23c8ded05e70cf70fe1542 /include/vcl/threadex.hxx
parent0b23ac2c9d36c89137feeb82d0aed7a8628a53b7 (diff)
vcl: std::auto_ptr -> std::unique_ptr
Change-Id: I5a08186b465b15311c63784506a0ca0e119286e2
Diffstat (limited to 'include/vcl/threadex.hxx')
-rw-r--r--include/vcl/threadex.hxx4
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 );