diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-02 11:43:52 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-02 14:32:58 -0200 |
commit | 8fb11ea5ff063f23785ac4ce7e1f3187ae0aa774 (patch) | |
tree | 6f31e3b314fce10706439f3c3ffb2c86ffadd65c /shibokengenerator.h | |
parent | 7bed51517c9bcb9e5f152751b1a3c43d71682f55 (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 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; }; |