aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-08 15:51:48 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:11 -0300
commit99862b71c95e1e061ac743fb864a041fa0a1fbf8 (patch)
treebfabc643047c934084caa8a5ba9ab0f1d0812977 /abstractmetalang.cpp
parent6ab94ebbe402a92a7587e5b947f821712b6ee605 (diff)
Implemented support to added functions for TypeAlias.sb-0.8.1
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index ed793426..de3451d3 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -1335,6 +1335,7 @@ bool AbstractMetaClass::hasDefaultToStringFunction() const
void AbstractMetaClass::addFunction(AbstractMetaFunction *function)
{
+ Q_ASSERT(!function->signature().startsWith("("));
function->setOwnerClass(this);
if (!function->isDestructor())
@@ -1596,6 +1597,7 @@ bool AbstractMetaClass::hasPrivateCopyConstructor() const
void AbstractMetaClass::addDefaultConstructor()
{
AbstractMetaFunction *f = new AbstractMetaFunction;
+ f->setOriginalName(name());
f->setName(name());
f->setOwnerClass(this);
f->setFunctionType(AbstractMetaFunction::ConstructorFunction);
@@ -1616,6 +1618,7 @@ void AbstractMetaClass::addDefaultConstructor()
void AbstractMetaClass::addDefaultCopyConstructor(bool isPrivate)
{
AbstractMetaFunction* f = new AbstractMetaFunction;
+ f->setOriginalName(name());
f->setName(name());
f->setOwnerClass(this);
f->setFunctionType(AbstractMetaFunction::ConstructorFunction);