svx/source/inc/fmshimp.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 98dbb1b50af57b3070da6434825e79747f536f8a Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Tue Dec 21 16:54:15 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Jan 1 19:25:29 2022 +0100 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 <noel.gran...@collabora.co.uk> 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 <svx/fmtools.hxx> #include <osl/mutex.hxx> #include <comphelper/container.hxx> +#include <cppuhelper/basemutex.hxx> #include <cppuhelper/compbase.hxx> #include <unotools/configitem.hxx> #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<sal_Int16> m_arrRelativeGridColumn; - ::osl::Mutex m_aMutex; ImplSVEvent * m_nInvalidationEvent; ImplSVEvent * m_nActivationEvent; ::std::queue< FmLoadAction >