From 09d29fab72e22ba830f178b15a74a5a87c8a73a5 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Fri, 23 Aug 2019 09:44:01 +0200 Subject: Fix old boost build for good MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the previous approach the code could lead to crashes in the flowfrm.cxx Change-Id: I3b56ed46db9d37a606a1cd793a20b8aff22db6e2 Reviewed-on: https://gerrit.libreoffice.org/78003 Reviewed-by: Tomáš Chvátal Tested-by: Tomáš Chvátal Reviewed-by: Samuel Mehrbrodt --- sw/source/core/inc/frame.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/source/core/inc/frame.hxx') diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index a966947ca94c..5cae3ccabdc9 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -1245,11 +1245,15 @@ public: m_pForbidFrame->ForbidDelete(); } + SwFrameDeleteGuard(const SwFrameDeleteGuard&) =delete; + ~SwFrameDeleteGuard() { if (m_pForbidFrame) m_pForbidFrame->AllowDelete(); } + + SwFrameDeleteGuard& operator=(const SwFrameDeleteGuard&) =delete; }; typedef long (SwFrame:: *SwFrameGet)() const; -- cgit