summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-03-16 22:55:10 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2022-03-17 09:59:07 +0100
commit684502c24b5f0f5e67c189e79d9f3ffa79d1975e (patch)
treefa79eef29893f41ba39765d4b9c727101ed4624b /cui
parent763e5d233d18a26f64dd8c4db67ce62ee289832e (diff)
cui: Use range-based for in SpellDialog
None of the widgets should be nullptr. Change-Id: Iaaa2528571a7f301c5fab5ddf938494ed1c57f2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131686 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, 4 insertions, 8 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index dae7b92c9155..11ed7225cc32 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -969,15 +969,11 @@ void SpellDialog::InvalidateDialog()
m_xChangePB.get(),
m_xChangeAllPB.get(),
m_xAutoCorrPB.get(),
- m_xUndoPB.get(),
- nullptr
+ m_xUndoPB.get()
};
- sal_Int16 i = 0;
- while(aDisableArr[i])
- {
- aDisableArr[i]->set_sensitive(false);
- i++;
- }
+ for (weld::Widget* pWidget : aDisableArr)
+ pWidget->set_sensitive(false);
+
SfxModelessDialogController::Deactivate();
}