diff options
author | Tor Lillqvist <tml@iki.fi> | 2018-08-27 17:34:56 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2018-08-27 22:29:49 +0300 |
commit | 71527a308a4b32284830911a055087d05d078a71 (patch) | |
tree | 3ace5b89951b0a6fcc6b5c677cbdf43b88254703 /vcl/ios | |
parent | 823a328a04167935be38203ae05181ec5eb9b386 (diff) |
Fix iOS build after f05f4e042ca6ac8ae7f1d1e8e6bfb4cbba17a044
Change-Id: I7b0c737b84f4528a8fba01e2998f525046834b1c
Diffstat (limited to 'vcl/ios')
-rw-r--r-- | vcl/ios/iosinst.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index 749541bf964a..588fa07f8a2a 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -25,6 +25,7 @@ #include "headless/svpdummies.hxx" #include "unx/gendata.hxx" #include "quartz/utils.h" +#include <o3tl/make_unique.hxx> #include <vcl/layout.hxx> #include <vcl/settings.hxx> @@ -58,8 +59,8 @@ IosSalInstance *IosSalInstance::getInstance() return static_cast<IosSalInstance *>(pData->m_pInstance); } -IosSalInstance::IosSalInstance( SalYieldMutex *pMutex ) - : SvpSalInstance( pMutex ) +IosSalInstance::IosSalInstance( std::unique_ptr<SalYieldMutex> pMutex ) + : SvpSalInstance( std::move(pMutex) ) { } @@ -170,7 +171,7 @@ SalData::~SalData() // This is our main entry point: SalInstance *CreateSalInstance() { - IosSalInstance* pInstance = new IosSalInstance( new SvpSalYieldMutex() ); + IosSalInstance* pInstance = new IosSalInstance( o3tl::make_unique<SvpSalYieldMutex>() ); new IosSalData( pInstance ); pInstance->AcquireYieldMutex(); return pInstance; |