diff 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
line wrap: on
line diff
--- a/generator/abstractmetalang.cpp	Wed Dec 30 11:25:07 2009 +0000
+++ b/generator/abstractmetalang.cpp	Wed Dec 30 16:12:42 2009 +0000
@@ -258,6 +258,11 @@
         result |= EqualAttributes;
     }
 
+    // Attributes
+    if (isConstant() == other->isConstant()) {
+        result |= EqualConstness;
+    }
+
     // Compare types
     AbstractMetaType *t = type();
     AbstractMetaType *ot = other->type();