[Libreoffice-commits] core.git: vcl/headless
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Aug 22 14:59:03 UTC 2018
vcl/headless/headlessinst.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit d01839774a2d3709d6be5d8f780fdf9b514b4032
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Aug 22 11:57:07 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 22 16:58:41 2018 +0200
fix oss-fuzz build
Change-Id: Idec87abc7c7ec030e299a5dd582d6c1c44ae1a32
Reviewed-on: https://gerrit.libreoffice.org/59440
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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;
More information about the Libreoffice-commits
mailing list