comparison generator/abstractmetalang.cpp @ 326:baaf74652f4c signals

treat const and non-const functions as separate
author eldar1@eldar1-laptop
date Wed, 30 Dec 2009 16:12:42 +0000
parents 0cc996b7a601
children c97e5d15bf95
comparison
equal deleted inserted replaced
325:b460cd08041f 326:baaf74652f4c
256 // Attributes 256 // Attributes
257 if (attributes() == other->attributes()) { 257 if (attributes() == other->attributes()) {
258 result |= EqualAttributes; 258 result |= EqualAttributes;
259 } 259 }
260 260
261 // Attributes
262 if (isConstant() == other->isConstant()) {
263 result |= EqualConstness;
264 }
265
261 // Compare types 266 // Compare types
262 AbstractMetaType *t = type(); 267 AbstractMetaType *t = type();
263 AbstractMetaType *ot = other->type(); 268 AbstractMetaType *ot = other->type();
264 if ((!t && !ot) || ((t && ot && t->name() == ot->name()))) { 269 if ((!t && !ot) || ((t && ot && t->name() == ot->name()))) {
265 result |= EqualReturnType; 270 result |= EqualReturnType;