summaryrefslogtreecommitdiff
path: root/rsc/inc/rscarray.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-07-03 02:35:31 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-07-03 20:53:12 +0000
commitbb45bdf359c65c174fd557d615f77ceb46fa685c (patch)
tree1f87575ee1d0471b14f5078a99d3a589d955d56d /rsc/inc/rscarray.hxx
parent27a4d5597c0757611d0e2e682d0c05441859cc4e (diff)
module rsc: String, bool and other clean-up.
Change-Id: I2dcde42e6068631a5a643961a764df86dc63dca2 Reviewed-on: https://gerrit.libreoffice.org/4690 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'rsc/inc/rscarray.hxx')
-rw-r--r--rsc/inc/rscarray.hxx45
1 files changed, 21 insertions, 24 deletions
diff --git a/rsc/inc/rscarray.hxx b/rsc/inc/rscarray.hxx
index 9d036a5fc4fe..a3ec217ba73a 100644
--- a/rsc/inc/rscarray.hxx
+++ b/rsc/inc/rscarray.hxx
@@ -38,9 +38,9 @@ public:
RscInstNode * Left() const { return (RscInstNode *)pLeft ; };
RscInstNode * Right() const{ return (RscInstNode *)pRight ; };
RscInstNode * Search( sal_uInt32 nId ) const
- {
- return (RscInstNode *)IdNode::Search( nId );
- }
+ {
+ return (RscInstNode *)IdNode::Search( nId );
+ }
};
struct RscArrayInst
@@ -55,38 +55,35 @@ class RscArray : public RscTop
{
protected:
RscEnum * pTypeClass; // Typ der Eintraege
- sal_uInt32 nSize; // Groesse der Instanzdaten dieser Klasse
+ sal_uInt32 nSize; // Groesse der Instanzdaten dieser Klasse
// mit Superklassen
- sal_uInt32 nOffInstData;// Offset auf eigen Instanzdaten
+ sal_uInt32 nOffInstData;// Offset auf eigen Instanzdaten
void WriteSrcArray( const RSCINST & rInst, FILE * fOutput,
- RscTypCont * pTC, sal_uInt32 nTab, const char * );
+ RscTypCont * pTC, sal_uInt32 nTab, const char * );
public:
RscArray( Atom nId, sal_uInt32 nTypId,
- RscTop * pSuper, RscEnum * pTypeClass );
+ RscTop * pSuper, RscEnum * pTypeClass );
~RscArray();
virtual RSCCLASS_TYPE GetClassType() const;
- void SetTypeClass( RscEnum * pClass )
- {
- pTypeClass = pClass;
- }
+ void SetTypeClass( RscEnum * pClass ) { pTypeClass = pClass; }
virtual RscTop * GetTypeClass() const;
- RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, sal_Bool );
+ RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, bool );
void Destroy( const RSCINST & rInst );
virtual ERRTYPE GetValueEle( const RSCINST & rInst, sal_Int32 lValue,
- RscTop * pCreateClass,
- RSCINST * pGetInst );
+ RscTop * pCreateClass,
+ RSCINST * pGetInst );
virtual ERRTYPE GetArrayEle( const RSCINST & rInst, Atom nId,
- RscTop * pCreateClass,
- RSCINST * pGetInst );
+ RscTop * pCreateClass,
+ RSCINST * pGetInst );
// Gibt die Groesse der Klasse in Bytes
- sal_uInt32 Size(){ return( nSize ); };
+ sal_uInt32 Size(){ return nSize; }
- sal_Bool IsConsistent( const RSCINST & rInst );
+ bool IsConsistent( const RSCINST & rInst );
virtual void SetToDefault( const RSCINST & rInst );
- sal_Bool IsDefault( const RSCINST & rInst );
- sal_Bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
+ bool IsDefault( const RSCINST & rInst );
+ bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
@@ -94,14 +91,14 @@ public:
void WriteSrc( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
- RscTypCont * pTC, sal_uInt32, sal_Bool bExtra );
+ RscTypCont * pTC, sal_uInt32, bool bExtra );
};
class RscClassArray : public RscArray
{
public:
RscClassArray( Atom nId, sal_uInt32 nTypId,
- RscTop * pSuper, RscEnum * pTypeClass );
+ RscTop * pSuper, RscEnum * pTypeClass );
~RscClassArray();
virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
@@ -110,7 +107,7 @@ public:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
virtual ERRTYPE WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont * pTC, const RscId & aId,
- sal_uInt32 nDeep, sal_Bool bExtra );
+ sal_uInt32 nDeep, bool bExtra );
};
@@ -118,7 +115,7 @@ class RscLangArray : public RscArray
{
public:
RscLangArray( Atom nId, sal_uInt32 nTypId,
- RscTop * pSuper, RscEnum * pTypeClass );
+ RscTop * pSuper, RscEnum * pTypeClass );
virtual RSCCLASS_TYPE GetClassType() const;
};