- Fixed: 'None' was no longer recognized as a NULL class name by the
DECORATE parser. SVN r1347 (trunk)
This commit is contained in:
parent
35edd15386
commit
fdfee91b9f
2 changed files with 11 additions and 1 deletions
|
|
@ -77,8 +77,14 @@
|
|||
//==========================================================================
|
||||
static const PClass *FindClassTentative(const char *name, const char *ancestor)
|
||||
{
|
||||
// "" and "none" mean 'no class'
|
||||
if (name == NULL || *name == 0 || !stricmp(name, "none"))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const PClass *anc = PClass::FindClass(ancestor);
|
||||
assert(anc != NULL); // parent classes used here should always be natively defined
|
||||
assert(anc != NULL); // parent classes used here should always be natively defined
|
||||
const PClass *cls = const_cast<PClass*>(anc)->FindClassTentative(name);
|
||||
assert (cls != NULL); // cls can not ne NULL here
|
||||
if (!cls->IsDescendantOf(anc))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue