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

View File

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

View File

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

View File

@ -69,7 +69,7 @@ RscId::RscId( RscDefine * pDef )
aExpType.aExp.pDef = pDef;
aExpType.cType = RSCEXP_DEF;
aExpType.cUnused = 0;
aExpType.cUnused = false;
Create( aExpType );
}