diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-22 11:57:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-22 16:58:41 +0200 |
commit | d01839774a2d3709d6be5d8f780fdf9b514b4032 (patch) | |
tree | 015ff565a07365e8d0509073b95a33fe2c03db86 /vcl | |
parent | 8a5e21d6bb7b70a9cde1ea86580191947f6208a4 (diff) |
fix oss-fuzz build
Change-Id: Idec87abc7c7ec030e299a5dd582d6c1c44ae1a32
Reviewed-on: https://gerrit.libreoffice.org/59440
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/headlessinst.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/headless/headlessinst.cxx b/vcl/headless/headlessinst.cxx index b49859c03c20..8326592c7da0 100644 --- a/vcl/headless/headlessinst.cxx +++ b/vcl/headless/headlessinst.cxx @@ -13,13 +13,13 @@ class HeadlessSalInstance : public SvpSalInstance { public: - explicit HeadlessSalInstance( SalYieldMutex *pMutex ); + explicit HeadlessSalInstance(std::unique_ptr<SalYieldMutex> pMutex); virtual SalSystem* CreateSalSystem() override; }; -HeadlessSalInstance::HeadlessSalInstance( SalYieldMutex *pMutex ) : - SvpSalInstance( pMutex) +HeadlessSalInstance::HeadlessSalInstance(std::unique_ptr<SalYieldMutex> pMutex) + : SvpSalInstance(std::move(pMutex)) { } @@ -90,7 +90,7 @@ SalData::~SalData() // This is our main entry point: SalInstance *CreateSalInstance() { - HeadlessSalInstance* pInstance = new HeadlessSalInstance( new SvpSalYieldMutex() ); + HeadlessSalInstance* pInstance = new HeadlessSalInstance(o3tl::make_unique<SvpSalYieldMutex>()); new HeadlessSalData( pInstance ); pInstance->AcquireYieldMutex(); return pInstance; |