summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-03-17 07:26:15 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2022-03-17 10:00:03 +0100
commit229012b4a5546c4611e3ff789432806d1b301e4a (patch)
tree531322c6676f4dd4e87aca15abc74e727fa46f26 /cui
parent58f29c4f1de3e116aec62d69b0921f2ee44b8c70 (diff)
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.weghorn@posteo.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx12
1 files changed, 3 insertions, 9 deletions
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 )
{