diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-17 00:04:57 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-17 00:04:57 -0500 |
commit | 0196e3b7eb8e75dfd8482ebf54d35b12308d4416 (patch) | |
tree | a5dfd67a277f1e43910328c6a4b8a089e9b99364 /store | |
parent | 7ed1d1de5eef6aad14d1ad7c3286bc7cba08a5d5 (diff) |
use SAL_N_ELEMENTS macro
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storcach.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx index c01cc32c80b1..79c34492e978 100644 --- a/store/source/storcach.cxx +++ b/store/source/storcach.cxx @@ -32,6 +32,7 @@ #include "storcach.hxx" #include "sal/types.h" +#include "sal/macros.h" #include "rtl/alloc.h" #include "osl/diagnose.h" @@ -342,7 +343,7 @@ PageCache_Impl::PageCache_Impl (sal_uInt16 nPageSize) m_nHit (0), m_nMissed (0) { - static size_t const theSize = sizeof(m_hash_table_0) / sizeof(m_hash_table_0[0]); + static size_t const theSize = SAL_N_ELEMENTS(m_hash_table_0); STORE_STATIC_ASSERT(theSize == theTableSize); memset(m_hash_table_0, 0, sizeof(m_hash_table_0)); } |