From 61f9748061ef752b5617ec244a8f451700dc18f4 Mon Sep 17 00:00:00 2001 From: "Sandro S. Andrade" Date: Wed, 4 Sep 2013 16:38:54 -0300 Subject: Add implementation of clone() in all UML metamodel objects Change-Id: I9bb9c90159b813ee7d7b941b9fbb1d6f426bf487 Reviewed-by: Sandro S. Andrade --- scripts/templates/common.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/templates/common.tmpl') diff --git a/scripts/templates/common.tmpl b/scripts/templates/common.tmpl index 442825ee..e3a8476f 100644 --- a/scripts/templates/common.tmpl +++ b/scripts/templates/common.tmpl @@ -416,7 +416,7 @@ void Q${namespace}${originalClassName}Object::set${attributeName.remove("^Is")}( if (${attributeName}()) c->set${attributeName.ucfirst}(dynamic_cast<${qtType.remove("QList<").remove("QSet<").remove(">").replace('\* ', '*')}>(${attributeName}()->clone())); [%- ELSE %] - c->set${attributeName.ucfirst}(${attributeName}()); + c->set${attributeName.ucfirst.remove("^Is")}(${attributeName}()); [%- END -%] [%- END %] [%- END -%] -- cgit v1.2.3