summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 11:31:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 08:24:33 +0200
commitec8c98f59869bee0e327d32f39480a0e4b1330bc (patch)
treeee68d29cd51c60a8a939fd454955410e66e3b66c /binaryurp
parent11503e99be09b4e8faa465559fbdacb06e8896cc (diff)
use more SAL_N_ELEMENTS part 3
Change-Id: I82e366fefd2e31928b99840fe76649cc3521e623 Reviewed-on: https://gerrit.libreoffice.org/38789 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/qa/test-cache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryurp/qa/test-cache.cxx b/binaryurp/qa/test-cache.cxx
index f14b3837629e..989b103e2e90 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 != sizeof a / sizeof a[0]; ++i) {
+ for (int i = 0; i != int(SAL_N_ELEMENTS(a)); ++i) {
for (int j = 0; j != i; ++j) {
a[j] = 0;
}