From 98dbb1b50af57b3070da6434825e79747f536f8a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Dec 2021 16:54:15 +0200 Subject: use cppu::BaseMutex in FmXFormShell because passing a ref of a local member to a parent class means passing uninitialised data Change-Id: Idaa8d3d3c54a14e184c84a0d6df15219b2ec2f8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127832 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/inc/fmshimp.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'svx/source/inc/fmshimp.hxx') diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index 4c511897babc..a468bc030b7d 100644 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include "formcontrolling.hxx" @@ -150,7 +151,8 @@ struct SdrViewEvent; class FmFormShell; class FmFormView; class FmFormObj; -class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmXFormShell final : public FmXFormShell_BASE +class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmXFormShell final : private cppu::BaseMutex + ,public FmXFormShell_BASE ,public FmXFormShell_CFGBASE ,public svx::IControllerFeatureInvalidation { @@ -182,7 +184,6 @@ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) FmXFormShell final : public FmXFormShe // (the array is thus only valid during the search process) std::vector m_arrRelativeGridColumn; - ::osl::Mutex m_aMutex; ImplSVEvent * m_nInvalidationEvent; ImplSVEvent * m_nActivationEvent; ::std::queue< FmLoadAction > -- cgit