| commit | b26793b907ce823e5cce38f6fe93b420ebe38579 | [log] |
|---|---|---|
| author | jsala <javier.salamanca.munoz@gmail.com> | Wed Oct 12 16:17:22 2022 +0200 |
| committer | Stephan Bergmann <sbergman@redhat.com> | Wed Oct 12 19:43:08 2022 +0200 |
| tree | 60bb2576f4e0294b3a78d67b45d5c863c4b09bd2 | |
| 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
diff --git a/compilerplugins/clang/test/constvars.cxx b/compilerplugins/clang/test/constvars.cxx index 80acdb6..88df50f 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;