diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 11:38:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:44 +0100 |
commit | b833876805f7ce6670c618dc9cd6b68ded97a8f7 (patch) | |
tree | 31e853d8cb03df1a2886dc6814174e339df486d9 | |
parent | f276c0057c81daaa71f4b5e380f045d6b576db42 (diff) |
Use bool
Change-Id: Id6c1f1d4e4ee7aa29f16ef6930c1eb3d4a3a411f
-rw-r--r-- | rsc/inc/rscdef.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rscrange.hxx | 3 | ||||
-rw-r--r-- | rsc/source/parser/rscyacc.y | 2 | ||||
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/rsc/inc/rscdef.hxx b/rsc/inc/rscdef.hxx index f279ddb2f18f..3ab50765bd57 100644 --- a/rsc/inc/rscdef.hxx +++ b/rsc/inc/rscdef.hxx @@ -49,7 +49,7 @@ public: } aLong; } aExp; char cType; - char cUnused; + bool cUnused; bool IsNumber() const { return( RSCEXP_LONG == cType ); } bool IsExpression()const { return( RSCEXP_EXP == cType ); } bool IsDefinition()const { return( RSCEXP_DEF == cType ); } diff --git a/rsc/inc/rscrange.hxx b/rsc/inc/rscrange.hxx index 00dbf283a77d..836d5a331342 100644 --- a/rsc/inc/rscrange.hxx +++ b/rsc/inc/rscrange.hxx @@ -136,8 +136,7 @@ public: bool IsDefault( const RSCINST & rInst) { //cUnused wird fuer Defaultkennung verwendet - return ((RscId*)rInst.pData)->aExp.cUnused - ? true : false; + return ((RscId*)rInst.pData)->aExp.cUnused; } // Als Default setzen bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ); diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y index 6a7ad43d8fb2..b2efde568058 100644 --- a/rsc/source/parser/rscyacc.y +++ b/rsc/source/parser/rscyacc.y @@ -387,7 +387,7 @@ resource_definition RscExpType aExpType; RscExpression * pExpr; - aExpType.cUnused = 0; + aExpType.cUnused = false; aExpType.cType = RSCEXP_NOTHING; aExpType.SetLong( 0 ); aExpType.cType = RSCEXP_LONG; diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index 02fda0fd720f..c2500f131322 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -69,7 +69,7 @@ RscId::RscId( RscDefine * pDef ) aExpType.aExp.pDef = pDef; aExpType.cType = RSCEXP_DEF; - aExpType.cUnused = 0; + aExpType.cUnused = false; Create( aExpType ); } |