diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-15 18:26:57 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-15 20:12:26 -0300 |
commit | d9c5531a3cf0967e2595cef18c63892c0d64d551 (patch) | |
tree | a62d5be5336acf5d518a813ab714632285e3e633 /cppgenerator.h | |
parent | de5187268ab7dd96fc5fa98c583086fc5afe5b48 (diff) |
Adds CppGenerator::writeCppSelfDefinition method.
The code to write the definition of cppSelf was in two places and
contained an #ifdef clause, now it is a writer method.
Also added the ShibokenGenerator::cppSelfVariableName() method
to be used instead of directly writing the "cppSelf" string.
Updated custom code on test binding to remove warning.
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r-- | cppgenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h index 15e0a05fc..2648d054b 100644 --- a/cppgenerator.h +++ b/cppgenerator.h @@ -53,6 +53,7 @@ private: void writeMinimalConstructorCallArguments(QTextStream& s, const AbstractMetaType* type); void writeMethodWrapper(QTextStream &s, const AbstractMetaFunctionList overloads); void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData); + void writeCppSelfDefinition(QTextStream& s, const AbstractMetaFunction* func); void writeErrorSection(QTextStream& s, OverloadData& overloadData); /** |