diff generator/typesystem.cpp @ 355:08c1ca7975ab

obviated redundant virtual dispatch callbacks
author Max Samukha <maxter@spambox.com>
date Tue, 25 May 2010 17:23:11 +0300
parents 4920ef9206fe
children beaf4a2974d7
line wrap: on
line diff
--- a/generator/typesystem.cpp	Mon May 24 23:43:30 2010 +0300
+++ b/generator/typesystem.cpp	Tue May 25 17:23:11 2010 +0300
@@ -1720,12 +1720,8 @@
 QString EnumTypeEntry::javaQualifier() const
 {
     TypeEntry *te = TypeDatabase::instance()->findType(m_qualifier);
-    if (te != 0) {
-        if (te->designatedInterface())
-            te = te->designatedInterface();
-
+    if (te != 0)
         return te->targetLangName();
-    }
     else
         return m_qualifier;
 }