diff options
author | jsala <javier.salamanca.munoz@gmail.com> | 2022-06-21 21:25:50 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-09-04 20:04:23 +0200 |
commit | 9e7e95a57b7c16941d9fdc59f806c1f9e4263379 (patch) | |
tree | 2311a80a98bd31b703708d946a5905d980835bca /chart2 | |
parent | 42d197ef301db68e56f7e45b6e36ace5fae04b4d (diff) |
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 <hossein@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/res_BarGeometry.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<weld::TreeView&, void>& rLink) |