sc/source/filter/qpro/qproform.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 17418dea6be97bfc5efbe8a47d1a8ee26fbd0a9c Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Fri Apr 18 18:54:37 2025 +0200 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Fri May 30 19:31:33 2025 +0200 tdf#147021 avoid use of SAL_N_ELEMENTS macro in qproform.cxx Change-Id: Ic8f02d859baab75868efde03d891020e8273d83a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184359 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx index 9ece7da03fc4..91b994d7a032 100644 --- a/sc/source/filter/qpro/qproform.cxx +++ b/sc/source/filter/qpro/qproform.cxx @@ -561,18 +561,16 @@ const struct { ocNoName, FT_NotImpl } // gives properties of DOS menus }; -const int nIndexCount = SAL_N_ELEMENTS( aFuncMap ); - DefTokenId QProToSc::IndexToToken( sal_uInt16 nIndex ) { - if( nIndex < nIndexCount ) + if( nIndex < std::size(aFuncMap) ) return aFuncMap[ nIndex ].nToken; return ocNoName; } QPRO_FUNC_TYPE QProToSc::IndexToType( sal_uInt8 nIndex ) { - if( nIndex < nIndexCount ) + if( nIndex < std::size(aFuncMap) ) return aFuncMap[ nIndex ].nType; return FT_NotImpl; }