summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlusage.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-10-06 11:31:46 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-10-06 16:28:28 +0200
commit3031fe1254052bdeffec90ca76e2f3649a971ae7 (patch)
tree1c53eeec8c4be183f600a8f17c7e156efa779ea1 /src/uml/qumlusage.cpp
parente07d31eda9cc77f50fb6dbae8905384219171332 (diff)
Use plural form for multi-valued UML metamodel properties
Change-Id: Ia8ab1c48d0fb552aca0ae729507c18b63d4c448e Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlusage.cpp')
-rw-r--r--src/uml/qumlusage.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/uml/qumlusage.cpp b/src/uml/qumlusage.cpp
index 5496bbe0..2b3909f1 100644
--- a/src/uml/qumlusage.cpp
+++ b/src/uml/qumlusage.cpp
@@ -51,6 +51,7 @@
#include <QtUml/QUmlParameterableElement>
#include <QtUml/QUmlStringExpression>
#include <QtUml/QUmlTemplateParameter>
+
/*!
\class QUmlUsage
@@ -78,21 +79,21 @@ QUmlUsage::~QUmlUsage()
QModelingObject *QUmlUsage::clone() const
{
QUmlUsage *c = new QUmlUsage;
- foreach (QUmlComment *element, ownedComment())
+ foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
if (owningTemplateParameter())
c->setOwningTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(owningTemplateParameter()->clone()));
if (templateParameter())
c->setTemplateParameter(dynamic_cast<QUmlTemplateParameter *>(templateParameter()->clone()));
- foreach (QUmlDependency *element, clientDependency())
+ foreach (QUmlDependency *element, clientDependencies())
c->addClientDependency(dynamic_cast<QUmlDependency *>(element->clone()));
c->setName(name());
if (nameExpression())
c->setNameExpression(dynamic_cast<QUmlStringExpression *>(nameExpression()->clone()));
c->setVisibility(visibility());
- foreach (QUmlNamedElement *element, client())
+ foreach (QUmlNamedElement *element, clients())
c->addClient(dynamic_cast<QUmlNamedElement *>(element->clone()));
- foreach (QUmlNamedElement *element, supplier())
+ foreach (QUmlNamedElement *element, suppliers())
c->addSupplier(dynamic_cast<QUmlNamedElement *>(element->clone()));
return c;
}