diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 02:35:31 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-03 20:53:12 +0000 |
commit | bb45bdf359c65c174fd557d615f77ceb46fa685c (patch) | |
tree | 1f87575ee1d0471b14f5078a99d3a589d955d56d /rsc/inc/rscmgr.hxx | |
parent | 27a4d5597c0757611d0e2e682d0c05441859cc4e (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/rscmgr.hxx')
-rw-r--r-- | rsc/inc/rscmgr.hxx | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/rsc/inc/rscmgr.hxx b/rsc/inc/rscmgr.hxx index 838533bb6488..95301d28a7aa 100644 --- a/rsc/inc/rscmgr.hxx +++ b/rsc/inc/rscmgr.hxx @@ -26,11 +26,13 @@ #include <rscclass.hxx> /******************* R s c M g r *****************************************/ -class RscMgr : public RscClass { - struct RscMgrInst { +class RscMgr : public RscClass +{ + struct RscMgrInst + { RscId aRefId; // nRefId = Referenz Identifier - sal_Bool bDflt; // Ist Default - void Create(){ aRefId.Create(); bDflt = sal_True; } + bool bDflt; // Ist Default + void Create(){ aRefId.Create(); bDflt = true; } void Destroy(){ aRefId.Destroy(); } }; ERRTYPE IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep = 0 ); @@ -38,24 +40,24 @@ public: RscMgr( Atom nId, sal_uInt32 nTypId, RscTop * pSuperCl ); 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 ); - RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, sal_Bool ); + RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, bool ); void Destroy( const RSCINST & rInst ); - sal_uInt32 Size(); + sal_uInt32 Size(); void WriteSrcHeader( const RSCINST & aInst, FILE * fOutput, - RscTypCont * pTC, sal_uInt32 nTab, - const RscId & rId, const char * ); + RscTypCont * pTC, sal_uInt32 nTab, + const RscId & rId, const char * ); void WriteSrc( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, sal_uInt32 nTab, const char * ); ERRTYPE WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem, RscTypCont * pTC, const RscId & rId, - sal_uInt32, sal_Bool bExtra ); + sal_uInt32, bool bExtra ); ERRTYPE WriteRc( const RSCINST & rInst, RscWriteRc & aMem, - RscTypCont * pTC, sal_uInt32, sal_Bool bExtra ); - sal_Bool IsConsistent( const RSCINST & rInst ); + RscTypCont * pTC, sal_uInt32, bool bExtra ); + bool IsConsistent( const RSCINST & rInst ); ERRTYPE GetRef( const RSCINST & rInst, RscId * ); ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId ); }; |