diff options
Diffstat (limited to 'umbrello/umbrello/codegenobjectwithtextblocks.cpp')
-rw-r--r-- | umbrello/umbrello/codegenobjectwithtextblocks.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/umbrello/umbrello/codegenobjectwithtextblocks.cpp b/umbrello/umbrello/codegenobjectwithtextblocks.cpp index 99bbbf58..47cd27d3 100644 --- a/umbrello/umbrello/codegenobjectwithtextblocks.cpp +++ b/umbrello/umbrello/codegenobjectwithtextblocks.cpp @@ -87,10 +87,10 @@ bool CodeGenObjectWithTextBlocks::addTextBlock(TextBlock* add_object ) { // if it has a tag, check to see that its not in some other tqparent object // IF it is then we will need to remove it FIRST before adding to new tqparent - CodeDocument * tqparentDoc = add_object->getParentDocument(); - if(tqparentDoc) { + CodeDocument * parentDoc = add_object->getParentDocument(); + if(parentDoc) { - CodeGenObjectWithTextBlocks * oldParent = tqparentDoc->findParentObjectForTaggedTextBlock (tag); + CodeGenObjectWithTextBlocks * oldParent = parentDoc->findParentObjectForTaggedTextBlock (tag); if(oldParent && oldParent != this) oldParent->removeTextBlock(add_object); } @@ -460,7 +460,7 @@ void CodeGenObjectWithTextBlocks::loadChildTextBlocksFromNode ( TQDomElement & r } else if( name == "codeoperation" ) { // find the code operation by id - TQString id = element.attribute("tqparent_id","-1"); + TQString id = element.attribute("parent_id","-1"); UMLObject * obj = UMLApp::app()->getDocument()->findObjectById(STR2ID(id)); UMLOperation * op = dynamic_cast<UMLOperation*>(obj); if(op) { |