summaryrefslogtreecommitdiff
path: root/registry/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:27:24 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:27:24 +0000
commit1b14eedf5d84e426ff039df25998af4995f81d45 (patch)
tree240652919ec49c06d794e7e69c493db79771f702 /registry/source
parent3aefac48b7d4a8c108e377965af28c7812631b4d (diff)
INTEGRATION: CWS warnings01 (1.14.12); FILE MERGED
2005/11/21 13:37:35 sb 1.14.12.4: #i53898# Made code warning-free. 2005/09/22 22:04:01 sb 1.14.12.3: RESYNC: (1.14-1.15); FILE MERGED 2005/09/05 10:06:50 sb 1.14.12.2: #i53898# Made code warning-free. 2005/08/29 14:09:43 sb 1.14.12.1: #i53898# Made code warning-free.
Diffstat (limited to 'registry/source')
-rw-r--r--registry/source/reflread.cxx31
1 files changed, 17 insertions, 14 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index 6840a973f987..e4f4d8fd92f2 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: reflread.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 05:15:44 $
+ * last change: $Author: hr $ $Date: 2006-06-19 14:27:24 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -58,8 +58,6 @@
using namespace salhelper;
-static CPInfoTag aTag;
-
static sal_Char NULL_STRING[1] = { 0 };
static sal_Unicode NULL_WSTRING[1] = { 0 };
@@ -156,8 +154,8 @@ public:
};
BlopObject::BlopObject(const sal_uInt8* buffer, sal_uInt32 len, sal_Bool copyBuffer)
- : m_isCopied(copyBuffer)
- , m_bufferLen(len)
+ : m_bufferLen(len)
+ , m_isCopied(copyBuffer)
{
if (m_isCopied)
{
@@ -201,9 +199,9 @@ public:
};
StringCache::StringCache(sal_uInt16 size)
- : m_numOfStrings(size)
+ : m_stringTable(NULL)
+ , m_numOfStrings(size)
, m_stringsCopied(0)
- , m_stringTable(NULL)
{
m_stringTable = new sal_Unicode*[m_numOfStrings];
@@ -500,7 +498,7 @@ float ConstantPool::readFloatConstant(sal_uInt16 index)
{
float v;
sal_uInt32 b;
- } x;
+ } x = { 0.0f };
if (m_pIndex && (index> 0) && (index <= m_numOfEntries))
{
@@ -527,7 +525,7 @@ double ConstantPool::readDoubleConstant(sal_uInt16 index)
sal_uInt32 b1;
sal_uInt32 b2;
} b;
- } x;
+ } x = { 0.0 };
if (m_pIndex && (index> 0) && (index <= m_numOfEntries))
{
@@ -608,7 +606,7 @@ public:
sal_uInt16 m_numOfEntries;
sal_uInt16 m_numOfFieldEntries;
- sal_uInt8 m_FIELD_ENTRY_SIZE;
+ sal_uInt16 m_FIELD_ENTRY_SIZE;
ConstantPool* m_pCP;
FieldList(const sal_uInt8* buffer, sal_uInt16 numEntries, ConstantPool* pCP)
@@ -777,7 +775,7 @@ public:
sal_uInt16 m_numOfEntries;
sal_uInt16 m_numOfReferenceEntries;
- sal_uInt8 m_REFERENCE_ENTRY_SIZE;
+ sal_uInt16 m_REFERENCE_ENTRY_SIZE;
ConstantPool* m_pCP;
ReferenceList(const sal_uInt8* buffer, sal_uInt16 numEntries, ConstantPool* pCP)
@@ -870,7 +868,7 @@ public:
sal_uInt16 m_numOfEntries;
sal_uInt16 m_numOfMethodEntries;
sal_uInt16 m_numOfParamEntries;
- sal_uInt8 m_PARAM_ENTRY_SIZE;
+ sal_uInt16 m_PARAM_ENTRY_SIZE;
sal_uInt32* m_pIndex;
ConstantPool* m_pCP;
@@ -1173,6 +1171,8 @@ typereg_Version TypeRegistryEntry::getVersion() const {
**************************************************************************/
+extern "C" {
+
sal_Bool typereg_reader_create(
void const * buffer, sal_uInt32 length, sal_Bool copy,
typereg_Version maxVersion, void ** result)
@@ -1288,6 +1288,7 @@ void typereg_reader_getTypeName(void * hEntry, rtl_uString** pTypeName)
RTL_TEXTENCODING_UTF8, OSTRING_TO_OUSTRING_CVTFLAGS);
}
+
static void TYPEREG_CALLTYPE getSuperTypeName(TypeReaderImpl hEntry, rtl_uString** pSuperTypeName)
{
TypeRegistryEntry* pEntry = (TypeRegistryEntry*) hEntry;
@@ -1737,7 +1738,7 @@ void typereg_reader_getSuperTypeName(
RTL_TEXTENCODING_UTF8, OSTRING_TO_OUSTRING_CVTFLAGS);
}
-extern "C" RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(void)
+RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(void)
{
static RegistryTypeReader_Api aApi= {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
if (!aApi.acquire)
@@ -1784,3 +1785,5 @@ extern "C" RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(v
return (&aApi);
}
}
+
+}