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 | 49131bc1a59557ed1b431661af7a4bd705e48736 (patch) | |
tree | 2087943fe69af4f5200005987e67a57e686559dd /store | |
parent | c493fe47cbca5dae0c3a85e0799b3e5094809cd4 (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 201f99753..81863fc13 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)); } |