[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebindings/csharp/kimono/src
From:       Arno Rehn <kde () arnorehn ! de>
Date:       2009-01-09 1:24:54
Message-ID: 1231464294.804822.16084.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 907983 by arnorehn:

* Get rid of some ugly string replacements


 M  +2 -9      kimonopluginfactory.cpp  


--- trunk/KDE/kdebindings/csharp/kimono/src/kimonopluginfactory.cpp #907982:907983
@@ -267,15 +267,8 @@
 		MonoMethodDesc* desc = mono_method_desc_new(methodName, true);
 		ctor = mono_method_desc_search_in_class(desc, klass);
 	} else {
-		QString ifacestr(iface);
-		if (!ifacestr.contains("::")) {
-			if (ifacestr.startsWith('Q'))
-				ifacestr.prepend("Qyoto.");
-			else if (ifacestr.startsWith('K'))
-				ifacestr.prepend("Kimono.");
-		} else {
-			ifacestr.replace("::", ".");
-		}
+		Smoke::ModuleIndex id = Smoke::classMap[iface]->idClass(iface);
+		QString ifacestr = qyoto_modules[id.smoke].binding->className(id.index);
 		kWarning() << "searching for iface" << ifacestr;
 		foreach(QByteArray name, assemblyGetClasses((const char*) path.toLatin1())) {
 			nameSpace = name.left(name.lastIndexOf("."));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic