From d153882ca640ccc39460a09a6d5d10f1720c5b94 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Fri, 24 Aug 2018 21:10:40 +0300 Subject: Remove redundant loop, tdf#96099 follow-up Change-Id: I6318a526c8ea73ef32c18038c9bb5feeffc07b52 Reviewed-on: https://gerrit.libreoffice.org/59583 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/index/cnttab.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'sw/source/ui') diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index d5187dae1b0c..82ae77962ea9 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2811,8 +2811,6 @@ void SwTokenWindow::SetForm(SwForm& rForm, sal_uInt16 nL) if(m_pForm) { - for (auto& aControl : m_aControlList) - aControl.disposeAndClear(); //apply current level settings to the form for (auto& aControl : m_aControlList) aControl.disposeAndClear(); -- cgit