[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Dec 30 01:36:02 UTC 2004
CVS commit by okellogg:
createOperation(): Fix checking for template parameter names.
M +6 -2 umldoc.cpp 1.228
--- kdesdk/umbrello/umbrello/umldoc.cpp #1.227:1.228
@@ -1270,6 +1270,10 @@ UMLOperation* UMLDoc::createOperation(UM
for (; i < pCount; ++i) {
Umbrello::NameAndType_ListIt nt(params->at(i));
- UMLClassifier *c = (*nt).second;
- if (testParams->at(i)->getTypeName() != c->getName())
+ UMLObject *c = (*nt).second;
+ QString typeName = testParams->at(i)->getTypeName();
+ if (c == NULL) { //template parameter
+ if (typeName != "class")
+ break;
+ } else if (typeName != c->getName())
break;
}
More information about the umbrello-devel
mailing list