From 8fb11ea5ff063f23785ac4ce7e1f3187ae0aa774 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Tue, 2 Feb 2010 11:43:52 -0200 Subject: Implement return value heuristic. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cppgenerator.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cppgenerator.h') 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. -- cgit v1.2.3