diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-07-22 19:52:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-07-23 11:53:03 +0200 |
commit | b6f3b76fb611a5f2c7f32296bc86316b6abb32cb (patch) | |
tree | f48bf2884a19d55a3af982bcb0f1aa637a353b84 | |
parent | 7e164e4dcdda66f4077872065a5d2412d5130bc3 (diff) |
cid#1538889 Pointer to local outside scope
Change-Id: I32c6336d33b6fa7caa2a3b7861220f12096ae53b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154767
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |