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/rscstr.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/rscstr.hxx')
-rw-r--r-- | rsc/inc/rscstr.hxx | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/rsc/inc/rscstr.hxx b/rsc/inc/rscstr.hxx index 87da46f7fae2..fffbe5c26783 100644 --- a/rsc/inc/rscstr.hxx +++ b/rsc/inc/rscstr.hxx @@ -27,9 +27,10 @@ class RscString : public RscTop { RscTop * pRefClass; - struct RscStringInst { + struct RscStringInst + { char * pStr; // Zeiger auf String - sal_Bool bDflt; // Ist Default + bool bDflt; // Ist Default RscId aRefId; // ReferenzName }; sal_uInt32 nSize; @@ -37,24 +38,21 @@ public: RscString( Atom nId, sal_uInt32 nTypId ); virtual RSCCLASS_TYPE GetClassType() const; - void SetRefClass( RscTop * pClass ) - { - pRefClass = pClass; - }; - RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, sal_Bool ); + void SetRefClass( RscTop * pClass ) { pRefClass = pClass; } + RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ); // Der zulaessige Bereich wird gesetzt void Destroy( const RSCINST & rInst ); - sal_uInt32 Size(){ return nSize; } + sal_uInt32 Size(){ return nSize; } void SetToDefault( const RSCINST & rInst ) - { - ((RscStringInst*)rInst.pData)->bDflt = sal_True; - } - sal_Bool IsDefault( const RSCINST & rInst) - { - return( ((RscStringInst*)rInst.pData)->bDflt ); - }; + { + ((RscStringInst*)rInst.pData)->bDflt = true; + } + bool IsDefault( const RSCINST & rInst) + { + return ((RscStringInst*)rInst.pData)->bDflt; + } // Als Default setzen - sal_Bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ); + bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ); ERRTYPE SetString( const RSCINST &, const char * pStr ); ERRTYPE GetString( const RSCINST &, char ** ppStr ); ERRTYPE GetRef( const RSCINST & rInst, RscId * ); @@ -62,7 +60,7 @@ public: void WriteSrc( const RSCINST &, FILE * fOutput, RscTypCont * pTC, sal_uInt32 nTab, const char * ); ERRTYPE WriteRc( const RSCINST &, RscWriteRc & aMem, - RscTypCont * pTC, sal_uInt32, sal_Bool bExtra ); + RscTypCont * pTC, sal_uInt32, bool bExtra ); }; #endif // _RSCSTR_HXX |