From b6f3b76fb611a5f2c7f32296bc86316b6abb32cb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 22 Jul 2023 19:52:03 +0100 Subject: cid#1538889 Pointer to local outside scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I32c6336d33b6fa7caa2a3b7861220f12096ae53b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154767 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sw/source/core/docnode/ndtbl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 42c62bc9f802..b182407db8ef 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -1928,7 +1928,8 @@ void SwDoc::DelTable(SwTableNode *const pTableNd) { { // tdf#156267 remove DdeBookmarks before deleting nodes - SwDataChanged aTmp(SwPaM(*pTableNd, *pTableNd->EndOfSectionNode())); + SwPaM aTmpPaM(*pTableNd, *pTableNd->EndOfSectionNode()); + SwDataChanged aTmp(aTmpPaM); } bool bNewTextNd = false; -- cgit