INTEGRATION: CWS warnings01 (1.2.136); FILE MERGED

2006/04/07 20:02:05 sb 1.2.136.4: RESYNC: (1.3-1.4); FILE MERGED
2005/11/21 09:15:28 sb 1.2.136.3: #i53898# Made code warning-free.
2005/09/22 21:58:16 sb 1.2.136.2: RESYNC: (1.2-1.3); FILE MERGED
2005/09/02 16:30:32 sb 1.2.136.1: #i53898# Made code warning-free.
This commit is contained in:
Jens-Heiner Rechtien
2006-06-19 23:33:22 +00:00
parent 628e5aa6a4
commit d76cdb914c

View File

@@ -4,9 +4,9 @@
* *
* $RCSfile: stordata.hxx,v $ * $RCSfile: stordata.hxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: kz $ $Date: 2006-02-28 10:32:11 $ * last change: $Author: hr $ $Date: 2006-06-20 00:33:22 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@@ -34,7 +34,7 @@
************************************************************************/ ************************************************************************/
#ifndef _STORE_STORDATA_HXX_ #ifndef _STORE_STORDATA_HXX_
#define _STORE_STORDATA_HXX_ "$Revision: 1.4 $" #define _STORE_STORDATA_HXX_ "$Revision: 1.5 $"
#ifndef _SAL_TYPES_H_ #ifndef _SAL_TYPES_H_
#include <sal/types.h> #include <sal/types.h>
@@ -116,7 +116,8 @@ struct OStoreDataPageData : public store::OStorePageData
void initialize (void) void initialize (void)
{ {
base::m_aGuard.m_nMagic = STORE_MAGIC_DATAPAGE; base::m_aGuard.m_nMagic = STORE_MAGIC_DATAPAGE;
base::m_aDescr.m_nUsed += self::size(); base::m_aDescr.m_nUsed = sal::static_int_cast< sal_uInt16 >(
base::m_aDescr.m_nUsed + self::size());
rtl_zeroMemory (m_pData, capacity()); rtl_zeroMemory (m_pData, capacity());
} }
@@ -640,7 +641,8 @@ struct OStoreDirectoryPageData : public store::OStorePageData
: base (nPageSize) : base (nPageSize)
{ {
base::m_aGuard.m_nMagic = STORE_MAGIC_DIRECTORYPAGE; base::m_aGuard.m_nMagic = STORE_MAGIC_DIRECTORYPAGE;
base::m_aDescr.m_nUsed += self::size(); base::m_aDescr.m_nUsed = sal::static_int_cast< sal_uInt16 >(
base::m_aDescr.m_nUsed + self::size());
rtl_zeroMemory (m_pData, capacity()); rtl_zeroMemory (m_pData, capacity());
} }
@@ -655,7 +657,7 @@ struct OStoreDirectoryPageData : public store::OStorePageData
/** swap (internal and external representation). /** swap (internal and external representation).
*/ */
void swap (const D& rDescr) void swap ()
{ {
#ifdef OSL_BIGENDIAN #ifdef OSL_BIGENDIAN
m_aNameBlock.swap(); m_aNameBlock.swap();
@@ -665,7 +667,7 @@ struct OStoreDirectoryPageData : public store::OStorePageData
/** guard (external representation). /** guard (external representation).
*/ */
void guard (const D& rDescr) void guard ()
{ {
m_aNameBlock.guard(); m_aNameBlock.guard();
m_aDataBlock.guard(); m_aDataBlock.guard();
@@ -673,7 +675,7 @@ struct OStoreDirectoryPageData : public store::OStorePageData
/** verify (external representation). /** verify (external representation).
*/ */
storeError verify (const D& rDescr) storeError verify ()
{ {
storeError eErrCode = m_aNameBlock.verify(); storeError eErrCode = m_aNameBlock.verify();
if (eErrCode == store_E_None) if (eErrCode == store_E_None)