include/svx/fmgridif.hxx | 9 +++++---- svx/source/fmcomp/fmgridif.cxx | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-)
New commits: commit 9f46a103cbc7d3d7f7c1754d1aabfad6260d260f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 19 14:26:36 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Oct 20 13:50:28 2018 +0200 ensure m_aMutex ctor called before m_aMutex used Change-Id: I3d05831947b955b63f351180193bcf1585589c25 Reviewed-on: https://gerrit.libreoffice.org/62012 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx index f031f3f15565..9fc562afd695 100644 --- a/include/svx/fmgridif.hxx +++ b/include/svx/fmgridif.hxx @@ -336,6 +336,11 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmXGridPeer: css::form::XResetListener, css::view::XSelectionSupplier> { +protected: + css::uno::Reference< css::uno::XComponentContext > m_xContext; + ::osl::Mutex m_aMutex; + +private: css::uno::Reference< css::container::XIndexContainer > m_xColumns; css::uno::Reference< css::sdbc::XRowSet > m_xCursor; ::comphelper::OInterfaceContainerHelper2 m_aModifyListeners, @@ -362,10 +367,6 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmXGridPeer: friend class GridListenerDelegator; std::unique_ptr<GridListenerDelegator> m_pGridListener; -protected: - css::uno::Reference< css::uno::XComponentContext > m_xContext; - ::osl::Mutex m_aMutex; - public: FmXGridPeer(const css::uno::Reference< css::uno::XComponentContext >&); virtual ~FmXGridPeer() override; diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 30b2aa76cfa3..a00d153fb648 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1030,7 +1030,8 @@ using namespace fmgridif; FmXGridPeer::FmXGridPeer(const Reference< XComponentContext >& _rxContext) - :m_aModifyListeners(m_aMutex) + :m_xContext(_rxContext) + ,m_aModifyListeners(m_aMutex) ,m_aUpdateListeners(m_aMutex) ,m_aContainerListeners(m_aMutex) ,m_aSelectionListeners(m_aMutex) @@ -1038,7 +1039,6 @@ FmXGridPeer::FmXGridPeer(const Reference< XComponentContext >& _rxContext) ,m_aMode( getDataModeIdentifier() ) ,m_nCursorListening(0) ,m_bInterceptingDispatch(false) - ,m_xContext(_rxContext) { // Create must be called after this constructor m_pGridListener.reset( new GridListenerDelegator( this ) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits