aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-30 10:35:16 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:01 -0300
commitffae84ae273f46916d1898ade33c1728f324c707 (patch)
treee1b144ecad26e1209f70dfcaa646c20e32487626 /abstractmetabuilder.cpp
parentdeb5e6ffeecbabeff84b021a374e4d75bc12790b (diff)
Tag user added function inside namespaces as static functions.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Ara├║jo <renato.araujo@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 3ebfa59e..4281b2b6 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1266,6 +1266,8 @@ void AbstractMetaBuilder::traverseFunctions(ScopeModelItem scopeItem, AbstractMe
// Add the functions added by the typesystem
foreach (AddedFunction addedFunc, metaClass->typeEntry()->addedFunctions()) {
AbstractMetaFunction* func = traverseFunction(addedFunc);
+ if (metaClass->isNamespace())
+ *func += AbstractMetaFunction::Static;
if (func->name() == metaClass->name()) {
func->setFunctionType(AbstractMetaFunction::ConstructorFunction);
if (func->arguments().size() == 1 && func->arguments().first()->type()->typeEntry()->isCustom())