diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-01 12:57:44 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:07 -0300 |
commit | 22c7b2e24212b41fc941121f8df83eb238f8e0d3 (patch) | |
tree | 1724ca268678340096ec0111803d588f7314da2d /generator/cppgenerator.h | |
parent | bb95046f7cb7a06e52bc5e6f3cb9eff4271ecbf0 (diff) |
Moved many variables names used in generated code to macros.
Also fixed ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments()
method to consider call operators. Fixed code snippet variable
replacement for when there's only one Python argument in the function.
And CppGenerator::writeArgumentsInitializer() was sanitized, with never
used code erased.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'generator/cppgenerator.h')
-rw-r--r-- | generator/cppgenerator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/cppgenerator.h b/generator/cppgenerator.h index 841a983f4..c6cda3184 100644 --- a/generator/cppgenerator.h +++ b/generator/cppgenerator.h @@ -182,7 +182,7 @@ private: /// Writes the function that registers the multiple inheritance information for the classes that need it. void writeMultipleInheritanceInitializerFunction(QTextStream& s, const AbstractMetaClass* metaClass); - /// Writes the implementation of special cast functions, used when we need to cast a class with mulltiple inheritance. + /// Writes the implementation of special cast functions, used when we need to cast a class with multiple inheritance. void writeSpecialCastFunction(QTextStream& s, const AbstractMetaClass* metaClass); void writeExtendedIsConvertibleFunction(QTextStream& s, const TypeEntry* externalType, const QList<const AbstractMetaClass*>& conversions); @@ -191,7 +191,7 @@ private: void writeParentChildManagement(QTextStream& s, const AbstractMetaFunction* func, bool userHeuristicForReturn); bool writeParentChildManagement(QTextStream& s, const AbstractMetaFunction* func, int argIndex, bool userHeuristicPolicy); - void writeReturnValueHeuristics(QTextStream& s, const AbstractMetaFunction* func, const QString& self = "self"); + void writeReturnValueHeuristics(QTextStream& s, const AbstractMetaFunction* func, const QString& self = PYTHON_SELF_VAR); void writeInitQtMetaTypeFunctionBody(QTextStream& s, const AbstractMetaClass* metaClass) const; /** @@ -202,7 +202,7 @@ private: */ QString multipleInheritanceInitializerFunctionName(const AbstractMetaClass* metaClass); - /// Returns a list of all classes to which the given class could be casted. + /// Returns a list of all classes to which the given class could be cast. QStringList getAncestorMultipleInheritance(const AbstractMetaClass* metaClass); /// Returns true if the given class supports the python number protocol |