summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/object_factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/object_factory.cpp')
-rw-r--r--umbrello/umbrello/object_factory.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/umbrello/umbrello/object_factory.cpp b/umbrello/umbrello/object_factory.cpp
index cf49a1e1..327cb54b 100644
--- a/umbrello/umbrello/object_factory.cpp
+++ b/umbrello/umbrello/object_factory.cpp
@@ -176,8 +176,8 @@ UMLObject* createUMLObject(Uml::Object_Type type, const TQString &n,
return o;
}
-UMLAttribute *createAttribute(UMLObject *tqparent, const TQString& name, UMLObject *type) {
- UMLAttribute *attr = new UMLAttribute(tqparent);
+UMLAttribute *createAttribute(UMLObject *parent, const TQString& name, UMLObject *type) {
+ UMLAttribute *attr = new UMLAttribute(parent);
attr->setName(name);
attr->setType(type);
if (g_predefinedId == Uml::id_None)
@@ -185,35 +185,35 @@ UMLAttribute *createAttribute(UMLObject *tqparent, const TQString& name, UMLObje
return attr;
}
-UMLOperation *createOperation(UMLClassifier *tqparent, const TQString& name) {
- UMLOperation *op = new UMLOperation(tqparent, name, g_predefinedId);
+UMLOperation *createOperation(UMLClassifier *parent, const TQString& name) {
+ UMLOperation *op = new UMLOperation(parent, name, g_predefinedId);
return op;
}
-UMLClassifierListItem* createChildObject(UMLClassifier* tqparent, Uml::Object_Type type) {
+UMLClassifierListItem* createChildObject(UMLClassifier* parent, Uml::Object_Type type) {
UMLObject* returnObject = NULL;
switch (type) {
case Uml::ot_Attribute:
case Uml::ot_EntityAttribute: {
- UMLClassifier *c = dynamic_cast<UMLClassifier*>(tqparent);
+ UMLClassifier *c = dynamic_cast<UMLClassifier*>(parent);
if (c && !c->isInterface())
returnObject = c->createAttribute();
break;
}
case Uml::ot_Operation: {
- UMLClassifier *c = dynamic_cast<UMLClassifier*>(tqparent);
+ UMLClassifier *c = dynamic_cast<UMLClassifier*>(parent);
if (c)
returnObject = c->createOperation();
break;
}
case Uml::ot_Template: {
- UMLClassifier *c = dynamic_cast<UMLClassifier*>(tqparent);
+ UMLClassifier *c = dynamic_cast<UMLClassifier*>(parent);
if (c)
returnObject = c->createTemplate();
break;
}
case Uml::ot_EnumLiteral: {
- UMLEnum* umlenum = dynamic_cast<UMLEnum*>(tqparent);
+ UMLEnum* umlenum = dynamic_cast<UMLEnum*>(parent);
if (umlenum) {
returnObject = umlenum->createEnumLiteral();
}