aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-05 20:20:58 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-09 15:46:13 -0200
commit85be0d4d548bef2b249026d80dfb59274253bb17 (patch)
treeaede83c7f66c126f01f9c2220615674e96a6e82d /abstractmetabuilder.cpp
parent6067084bbfb6d479bcb886c73dba402c71257765 (diff)
- All reverse operators are now properly tagged as "reverse operator".
- Reverse operators aren't tagged as static methods anymore. - Reverse operators now have just one parameter, the one that matters. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 9c739c633..e69fd03a9 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -194,10 +194,10 @@ void AbstractMetaBuilder::traverseOperatorFunction(FunctionModelItem item)
// not of the same type of its owning class we suppose that it
// must be an reverse operator (e.g. CLASS::operator(TYPE, CLASS)).
// All operator overloads that operate over a class are already
- // beign added as member functions of that class by the API Extractor,
- // in addition to this the reverse operators are marked as static
- // for identification purposes.
- *metaFunction += AbstractMetaAttributes::Static;
+ // beign added as member functions of that class by the API Extractor.
+ arguments.pop_back();
+ metaFunction->setArguments(arguments);
+ metaFunction->setReverseOperator(true);
}
metaFunction->setFunctionType(AbstractMetaFunction::NormalFunction);
metaFunction->setVisibility(AbstractMetaFunction::Public);