diff options
author | Gautham Krishnan <gauthamkrishnanpriya@gmail.com> | 2022-03-01 12:04:38 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-03-10 00:40:02 +0100 |
commit | 51fb84829afbc1c0957fd1a489085613ad199f1a (patch) | |
tree | 2411be12fb6ad0b526f5ef977a31fecd559c81d4 /cui | |
parent | 409371801a6c4ee00d7e55984e746ea9fe942447 (diff) |
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: If35c679839b39a01e474f7b0b0abee570e85bdd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130798
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/toolbarmodedlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/toolbarmodedlg.cxx b/cui/source/dialogs/toolbarmodedlg.cxx index c4c4d347b58a..3d3594e8cde9 100644 --- a/cui/source/dialogs/toolbarmodedlg.cxx +++ b/cui/source/dialogs/toolbarmodedlg.cxx @@ -101,7 +101,7 @@ ToolbarmodeDialog::ToolbarmodeDialog(weld::Window* pParent) Link<weld::Toggleable&, void> aLink = LINK(this, ToolbarmodeDialog, SelectToolbarmode); const OUString sCurrentMode = GetCurrentMode(); - for (tools::ULong i = 0; i < SAL_N_ELEMENTS(m_pRadioButtons); i++) + for (tools::ULong i = 0; i < std::size(m_pRadioButtons); i++) { m_pRadioButtons[i]->connect_toggled(aLink); if (sCurrentMode == std::get<1>(TOOLBARMODES_ARRAY[i])) @@ -133,7 +133,7 @@ static bool file_exists(const OUString& fileName) int ToolbarmodeDialog::GetActiveRadioButton() { - for (tools::ULong i = 0; i < SAL_N_ELEMENTS(m_pRadioButtons); i++) + for (tools::ULong i = 0; i < std::size(m_pRadioButtons); i++) { if (m_pRadioButtons[i]->get_active()) return i; |