[Uml-devel] kdesdk/umbrello/umbrello
Stephan Binner
binner at kde.org
Tue Nov 4 11:33:05 UTC 2003
CVS commit by binner:
Fixed search logic for ot_Stereotype
M +6 -3 class.cpp 1.20
--- kdesdk/umbrello/umbrello/class.cpp #1.19:1.20
@@ -210,5 +210,6 @@ UMLObjectList UMLClass::findChildObject(
list.append( obj );
}
- } else if (t == ot_Template || t == ot_Stereotype) {
+ }
+ if (t == ot_Template || t == ot_Stereotype) {
UMLClassifierListItem* obj=0;
for(obj=m_TemplateList.first(); obj != 0; obj=m_TemplateList.next()) {
@@ -216,5 +217,6 @@ UMLObjectList UMLClass::findChildObject(
list.append(obj);
}
- } else if (t == ot_Operation || t == ot_Stereotype) {
+ }
+ if (t == ot_Operation || t == ot_Stereotype) {
UMLClassifierListItem* obj=0;
for(obj=m_OpsList.first();obj != 0;obj=m_OpsList.next()) {
@@ -222,5 +224,6 @@ UMLObjectList UMLClass::findChildObject(
list.append( obj );
}
- } else {
+ }
+ if (t != ot_Association && t != ot_Attribute && t != ot_Template && t != ot_Operation && t != ot_Stereotype) {
kdWarning() << "finding child object of unknown type" <<t<<" (requested name = "<<n<<")"<<endl;
}
More information about the umbrello-devel
mailing list