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 --- shibokengenerator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shibokengenerator.h') diff --git a/shibokengenerator.h b/shibokengenerator.h index faf5546a7..92c78b143 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -273,6 +273,8 @@ public: /// Returns true if the user enabled the so called "parent constructor heuristic". bool useCtorHeuristic() const; + /// Returns true if the user enabled the so called "return value heuristic". + bool useReturnValueHeuristic() const; /// Returns true if the user enabled PySide extensions. bool usePySideExtensions() const; protected: @@ -300,6 +302,7 @@ protected: AbstractMetaFunctionList filterFunctions(const AbstractMetaClass* metaClass); private: bool m_useCtorHeuristic; + bool m_userReturnValueHeuristic; bool m_usePySideExtensions; }; -- cgit v1.2.3