summaryrefslogtreecommitdiff
path: root/registry/source/reflread.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-06-23 10:52:34 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-06-23 10:52:34 +0000
commit694e6f5f9a5abf7dcd8b01e632f14d36250a5d29 (patch)
tree7ba94fd611b34d0de2e60795e3507e6abac4144c /registry/source/reflread.cxx
parent869373c85ceabc7a05f9f24e81965035be0bae16 (diff)
#i10000#: workaround GCC quirk to prevent valgrind diagnostics
Diffstat (limited to 'registry/source/reflread.cxx')
-rw-r--r--registry/source/reflread.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index b63db27840be..a6a5d0027941 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: reflread.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 02:43:56 $
+ * last change: $Author: hr $ $Date: 2004-06-23 11:52:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,8 @@
#include "reflcnst.hxx"
+#include <cstddef>
+
using namespace salhelper;
static CPInfoTag aTag;
@@ -1149,7 +1151,7 @@ TypeRegistryEntry::TypeRegistryEntry(
m_pMethods(NULL), m_pReferences(NULL), m_refCount(1), m_nSuperTypes(0),
m_offset_SUPERTYPES(0)
{
- sal_uInt16 entrySize = sizeof(sal_uInt16);
+ std::size_t const entrySize = sizeof(sal_uInt16);
sal_uInt16 nHeaderEntries = readUINT16(OFFSET_N_ENTRIES);
sal_uInt16 offset_N_SUPERTYPES = OFFSET_N_ENTRIES + entrySize + (nHeaderEntries * entrySize);
m_offset_SUPERTYPES = offset_N_SUPERTYPES + entrySize;