Kaydet (Commit) b8338768 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use bool

Change-Id: Id6c1f1d4e4ee7aa29f16ef6930c1eb3d4a3a411f
üst f276c005
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
} aLong; } aLong;
} aExp; } aExp;
char cType; char cType;
char cUnused; bool cUnused;
bool IsNumber() const { return( RSCEXP_LONG == cType ); } bool IsNumber() const { return( RSCEXP_LONG == cType ); }
bool IsExpression()const { return( RSCEXP_EXP == cType ); } bool IsExpression()const { return( RSCEXP_EXP == cType ); }
bool IsDefinition()const { return( RSCEXP_DEF == cType ); } bool IsDefinition()const { return( RSCEXP_DEF == cType ); }
......
...@@ -136,8 +136,7 @@ public: ...@@ -136,8 +136,7 @@ public:
bool IsDefault( const RSCINST & rInst) bool IsDefault( const RSCINST & rInst)
{ {
//cUnused wird fuer Defaultkennung verwendet //cUnused wird fuer Defaultkennung verwendet
return ((RscId*)rInst.pData)->aExp.cUnused return ((RscId*)rInst.pData)->aExp.cUnused;
? true : false;
} }
// Als Default setzen // Als Default setzen
bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ); bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
......
...@@ -387,7 +387,7 @@ resource_definition ...@@ -387,7 +387,7 @@ resource_definition
RscExpType aExpType; RscExpType aExpType;
RscExpression * pExpr; RscExpression * pExpr;
aExpType.cUnused = 0; aExpType.cUnused = false;
aExpType.cType = RSCEXP_NOTHING; aExpType.cType = RSCEXP_NOTHING;
aExpType.SetLong( 0 ); aExpType.SetLong( 0 );
aExpType.cType = RSCEXP_LONG; aExpType.cType = RSCEXP_LONG;
......
...@@ -69,7 +69,7 @@ RscId::RscId( RscDefine * pDef ) ...@@ -69,7 +69,7 @@ RscId::RscId( RscDefine * pDef )
aExpType.aExp.pDef = pDef; aExpType.aExp.pDef = pDef;
aExpType.cType = RSCEXP_DEF; aExpType.cType = RSCEXP_DEF;
aExpType.cUnused = 0; aExpType.cUnused = false;
Create( aExpType ); Create( aExpType );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment