diff options
author | VaibhavMalik4187 <vaibhavmalik2018@gmail.com> | 2022-02-04 17:36:52 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-02-06 21:38:32 +0100 |
commit | 8b327cd86d71d71d2f5f883321e5d53e3b42ed4e (patch) | |
tree | 1385e7eb779abd43508048850b688ef8e4650c9b /binaryurp | |
parent | 6bbc2eba29389bf7937ab5fd08b62821cbd56a97 (diff) |
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
Diffstat (limited to 'binaryurp')
-rw-r--r-- | binaryurp/qa/test-cache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryurp/qa/test-cache.cxx b/binaryurp/qa/test-cache.cxx index 989b103e2e90..c024f1f711d6 100644 --- a/binaryurp/qa/test-cache.cxx +++ b/binaryurp/qa/test-cache.cxx @@ -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; } |