Use bool
Change-Id: Id6c1f1d4e4ee7aa29f16ef6930c1eb3d4a3a411f
This commit is contained in:
parent
f276c0057c
commit
b833876805
@ -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 ); }
|
||||
|
@ -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 );
|
||||
|
@ -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;
|
||||
|
@ -69,7 +69,7 @@ RscId::RscId( RscDefine * pDef )
|
||||
|
||||
aExpType.aExp.pDef = pDef;
|
||||
aExpType.cType = RSCEXP_DEF;
|
||||
aExpType.cUnused = 0;
|
||||
aExpType.cUnused = false;
|
||||
Create( aExpType );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user