From 6034b642581803e2cb2566abe0a0cab0cbfeb50a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 31 May 2021 11:41:27 +0200 Subject: properly fix leak in ScAcceptChgDlg Change-Id: I4b6bb075c6511ac8ab8ab6f274977fd140925c41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116442 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/miscdlgs/acredlin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 1f8f06e7a451..68ce160809fa 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -278,7 +278,7 @@ void ScAcceptChgDlg::ClearView() nAcceptCount=0; nRejectCount=0; weld::TreeView& rTreeView = pTheView->GetWidget(); - rTreeView.selected_foreach( + rTreeView.all_foreach( [&rTreeView](weld::TreeIter& rEntry) { ScRedlinData *pEntryData = reinterpret_cast(rTreeView.get_id(rEntry).toInt64()); -- cgit