From 9e7e95a57b7c16941d9fdc59f806c1f9e4263379 Mon Sep 17 00:00:00 2001 From: jsala Date: Tue, 21 Jun 2022 21:25:50 +0200 Subject: tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro Change associated for by std::find_if in sqlbison.y Also change some integer by std::size_t Change-Id: I0d2100fbd7c22729da6ce0462c6cc093e0767fb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136263 Tested-by: Jenkins Reviewed-by: Hossein --- chart2/source/controller/dialogs/res_BarGeometry.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/dialogs/res_BarGeometry.cxx b/chart2/source/controller/dialogs/res_BarGeometry.cxx index 97befbe1f8f5..81d933b208bc 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.cxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.cxx @@ -29,8 +29,7 @@ BarGeometryResources::BarGeometryResources(weld::Builder* pBuilder) { 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))); + m_xLB_Geometry->set_size_request(-1, m_xLB_Geometry->get_height_rows(std::size(CHART_TYPE))); } void BarGeometryResources::connect_changed(const Link& rLink) -- cgit