summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-17 00:04:57 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-17 00:04:57 -0500
commit49131bc1a59557ed1b431661af7a4bd705e48736 (patch)
tree2087943fe69af4f5200005987e67a57e686559dd /store
parentc493fe47cbca5dae0c3a85e0799b3e5094809cd4 (diff)
use SAL_N_ELEMENTS macro
Diffstat (limited to 'store')
-rw-r--r--store/source/storcach.cxx3
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));
}