aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-02 11:43:52 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-02 14:32:58 -0200
commit8fb11ea5ff063f23785ac4ce7e1f3187ae0aa774 (patch)
tree6f31e3b314fce10706439f3c3ffb2c86ffadd65c /cppgenerator.h
parent7bed51517c9bcb9e5f152751b1a3c43d71682f55 (diff)
Implement return value heuristic.
If the method returns a pointer and there are no policies for the return type, the returned value is considered child of the current object (self). Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 0d7746ad6..b8dc25494 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -148,6 +148,7 @@ private:
void writeSpecialCastFunction(QTextStream& s, const AbstractMetaClass* metaClass);
void writeParentChildManagement(QTextStream& s, const AbstractMetaFunction* func);
+ void writeReturnValueHeuristics(QTextStream& s, const AbstractMetaFunction* func);
/**
* Returns the multiple inheritance initializer function for the given class.
* \param metaClass the class for whom the function name must be generated.