diff options
author | VaibhavMalik4187 <vaibhavmalik2018@gmail.com> | 2022-02-04 17:36:52 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-02-06 21:38:32 +0100 |
commit | 8b327cd86d71d71d2f5f883321e5d53e3b42ed4e (patch) | |
tree | 1385e7eb779abd43508048850b688ef8e4650c9b /chart2/source/controller/dialogs | |
parent | 6bbc2eba29389bf7937ab5fd08b62821cbd56a97 (diff) |
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: I4f5258ca5b37e9b1b4237c5d29e4a9e5362fa855
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129116
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'chart2/source/controller/dialogs')
-rw-r--r-- | chart2/source/controller/dialogs/res_BarGeometry.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/res_DataLabel.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/res_BarGeometry.cxx b/chart2/source/controller/dialogs/res_BarGeometry.cxx index 182d391aac33..97befbe1f8f5 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.cxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.cxx @@ -27,7 +27,7 @@ BarGeometryResources::BarGeometryResources(weld::Builder* pBuilder) : m_xFT_Geometry(pBuilder->weld_label("shapeft")) , m_xLB_Geometry(pBuilder->weld_tree_view("shape")) { - for (size_t i = 0; i < SAL_N_ELEMENTS(CHART_TYPE); ++i) + for (size_t i = 0; i < std::size(CHART_TYPE); ++i) m_xLB_Geometry->append_text(SchResId(CHART_TYPE[i])); m_xLB_Geometry->set_size_request(-1, m_xLB_Geometry->get_height_rows(SAL_N_ELEMENTS(CHART_TYPE))); diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx index a51e9d79a860..5630e94baba2 100644 --- a/chart2/source/controller/dialogs/res_DataLabel.cxx +++ b/chart2/source/controller/dialogs/res_DataLabel.cxx @@ -333,7 +333,7 @@ void DataLabelResources::Reset(const SfxItemSet& rInAttrs) const SfxPoolItem *pPoolItem = nullptr; if( rInAttrs.GetItemState(SCHATTR_DATADESCR_SEPARATOR, true, &pPoolItem) == SfxItemState::SET ) - for(size_t i=0; i < SAL_N_ELEMENTS(our_aLBEntryMap); ++i ) + for(size_t i=0; i < std::size(our_aLBEntryMap); ++i ) { if( our_aLBEntryMap[i] == static_cast<const SfxStringItem*>(pPoolItem)->GetValue()) m_xLB_Separator->set_active( i ); |