diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-14 11:31:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-15 08:24:33 +0200 |
commit | ec8c98f59869bee0e327d32f39480a0e4b1330bc (patch) | |
tree | ee68d29cd51c60a8a939fd454955410e66e3b66c /configmgr | |
parent | 11503e99be09b4e8faa465559fbdacb06e8896cc (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 'configmgr')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index bc3b31775b6d..2c8138abe19e 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -591,7 +591,7 @@ bool WriterThread::iteration() { OUString("bloaters") }; test_.setKey(path_, name_, css::uno::Any(options[index_])); - index_ = (index_ + 1) % (sizeof options / sizeof (OUString)); + index_ = (index_ + 1) % SAL_N_ELEMENTS(options); return true; } @@ -614,7 +614,7 @@ void Test::testThreads() { OUString("/org.openoffice.System"), OUString("L10N/Locale") } }; - std::size_t const numReaders = sizeof list / sizeof (Entry); + std::size_t const numReaders = SAL_N_ELEMENTS(list); std::size_t const numWriters = numReaders - 2; ReaderThread * readers[numReaders]; WriterThread * writers[numWriters]; |