diff options
Diffstat (limited to 'umbrello/umbrello/codeimport/import_utils.cpp')
-rw-r--r-- | umbrello/umbrello/codeimport/import_utils.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/umbrello/umbrello/codeimport/import_utils.cpp b/umbrello/umbrello/codeimport/import_utils.cpp index 5afae684..4e38a1aa 100644 --- a/umbrello/umbrello/codeimport/import_utils.cpp +++ b/umbrello/umbrello/codeimport/import_utils.cpp @@ -274,8 +274,8 @@ UMLObject *createUMLObject(Uml::Object_Type type, return o; } -UMLOperation* makeOperation(UMLClassifier *tqparent, const TQString &name) { - UMLOperation *op = Object_Factory::createOperation(tqparent, name); +UMLOperation* makeOperation(UMLClassifier *parent, const TQString &name) { + UMLOperation *op = Object_Factory::createOperation(parent, name); return op; } @@ -396,7 +396,7 @@ void insertMethod(UMLClassifier *klass, UMLOperation* &op, UMLAttribute* addMethodParameter(UMLOperation *method, const TQString& type, const TQString& name) { - UMLClassifier *owner = static_cast<UMLClassifier*>(method->tqparent()); + UMLClassifier *owner = static_cast<UMLClassifier*>(method->parent()); UMLObject *typeObj = owner->findTemplate(type); if (typeObj == NULL) { bPutAtGlobalScope = true; @@ -415,19 +415,19 @@ void addEnumLiteral(UMLEnum *enumType, const TQString &literal, const TQString & el->setDoc(comment); } -void createGeneralization(UMLClassifier *child, UMLClassifier *tqparent) { - // if the child is an interface, so is the tqparent. +void createGeneralization(UMLClassifier *child, UMLClassifier *parent) { + // if the child is an interface, so is the parent. if (child->isInterface()) - tqparent->setBaseType(Uml::ot_Interface); + parent->setBaseType(Uml::ot_Interface); Uml::Association_Type association = Uml::at_Generalization; - if (tqparent->isInterface() && !child->isInterface()) { - // if the tqparent is an interface, but the child is not, then + if (parent->isInterface() && !child->isInterface()) { + // if the parent is an interface, but the child is not, then // this is really realization. // association = Uml::at_Realization; } - UMLAssociation *assoc = new UMLAssociation(association, child, tqparent); + UMLAssociation *assoc = new UMLAssociation(association, child, parent); UMLDoc *umldoc = UMLApp::app()->getDocument(); assoc->setUMLPackage(umldoc->getRootFolder(Uml::mt_Logical)); umldoc->addAssociation(assoc); @@ -435,8 +435,8 @@ void createGeneralization(UMLClassifier *child, UMLClassifier *tqparent) { void createGeneralization(UMLClassifier *child, const TQString &parentName) { UMLObject *parentObj = createUMLObject( Uml::ot_Class, parentName ); - UMLClassifier *tqparent = static_cast<UMLClassifier*>(parentObj); - createGeneralization(child, tqparent); + UMLClassifier *parent = static_cast<UMLClassifier*>(parentObj); + createGeneralization(child, parent); } TQStringList includePathList() { |