compilerplugins/clang/test/constvars.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b26793b907ce823e5cce38f6fe93b420ebe38579 Author: jsala <javier.salamanca.mu...@gmail.com> AuthorDate: Wed Oct 12 16:17:22 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Oct 12 19:43:08 2022 +0200 tdf#147021 REVERT Use std::size() instead of SAL_N_ELEMENTS() macro Reverting this changes made by error. See https://gerrit.libreoffice.org/c/core/+/136263/6/compilerplugins/clang/test/constvars.cxx#25 Change-Id: Ica49759682adf55a1f0cef2a842acab603c62dac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141259 Reviewed-by: Stephan Bergmann <sberg...@redhat.com> Tested-by: Jenkins diff --git a/compilerplugins/clang/test/constvars.cxx b/compilerplugins/clang/test/constvars.cxx index 80acdb67528d..88df50f8e199 100644 --- a/compilerplugins/clang/test/constvars.cxx +++ b/compilerplugins/clang/test/constvars.cxx @@ -22,8 +22,8 @@ namespace test1 { int const aFormalArgs[] = { 1, 2 }; // expected-error@+1 {{var can be const [loplugin:constvars]}} -static std::size_t const nMediaArgsCount = std::size(aFormalArgs); -std::size_t foo() +static sal_uInt16 nMediaArgsCount = SAL_N_ELEMENTS(aFormalArgs); +sal_uInt16 foo() { (void)aFormalArgs; return nMediaArgsCount;