tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: I4f5258ca5b37e9b1b4237c5d29e4a9e5362fa855 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129116 Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
This commit is contained in:
committed by
Hossein
parent
6bbc2eba29
commit
8b327cd86d
@@ -39,7 +39,7 @@ private:
|
||||
// cf. jurt/test/com/sun/star/lib/uno/protocols/urp/Cache_Test.java:
|
||||
void Test::testNothingLostFromLruList() {
|
||||
int a[8];
|
||||
for (int i = 0; i != int(SAL_N_ELEMENTS(a)); ++i) {
|
||||
for (int i = 0; i != int(std::size(a)); ++i) {
|
||||
for (int j = 0; j != i; ++j) {
|
||||
a[j] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user