cui/source/dialogs/SpellDialog.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit 229012b4a5546c4611e3ff789432806d1b301e4a
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Mar 17 07:26:15 2022 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Mar 17 10:00:03 2022 +0100

    cui: Use more range-based for in SpellDialog
    
    Change-Id: I566af40d67154ee8891c97257b6ef232556fe1f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131688
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/cui/source/dialogs/SpellDialog.cxx 
b/cui/source/dialogs/SpellDialog.cxx
index 1eba79a15a0c..aa22a9b86a1d 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -364,16 +364,10 @@ void 
SpellDialog::SpellContinue_Impl(std::unique_ptr<UndoChangeGroupGuard>* pGua
         {
             m_xNotInDictFT.get(),
             m_xSentenceED->GetDrawingArea(),
-            m_xLanguageFT.get(),
-            nullptr
+            m_xLanguageFT.get()
         };
-        sal_Int32 nIdx = 0;
-        do
-        {
-            aControls[nIdx]->set_sensitive(true);
-        }
-        while(aControls[++nIdx]);
-
+        for (weld::Widget* pWidget : aControls)
+            pWidget->set_sensitive(true);
     }
     if( bNextSentence )
     {

Reply via email to