Change-Id: Id6c1f1d4e4ee7aa29f16ef6930c1eb3d4a3a411f
This commit is contained in:
Stephan Bergmann 2014-01-10 11:38:59 +01:00
parent f276c0057c
commit b833876805
4 changed files with 4 additions and 5 deletions

View File

@ -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 ); }

View File

@ -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 );

View File

@ -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;

View File

@ -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 );
} }