diff options
author | jsala <javier.salamanca.munoz@gmail.com> | 2022-10-12 16:17:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-10-12 19:43:08 +0200 |
commit | b26793b907ce823e5cce38f6fe93b420ebe38579 (patch) | |
tree | 60bb2576f4e0294b3a78d67b45d5c863c4b09bd2 /compilerplugins | |
parent | 369c7d2dc4b941d5b7699b03a3cfc03ad0e3b430 (diff) |
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 <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/constvars.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |