aboutsummaryrefslogtreecommitdiffstats
path: root/generator/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-28 12:00:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:05 -0300
commitc992fc0ce7eb6a2f31134328d8aa80aeabaafe97 (patch)
treee06777fb49ce6d414fc7248bb8800862cabc540c /generator/cppgenerator.h
parent1eee074d77f6c612a7644aea7b17d7a0128806cc (diff)
Created a method to generate method wrapper variable initialization code.
The contents of the new CppGenerator::writeMethodWrapperPreamble() method were moved from the writers of constructor and method wrappers. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator/cppgenerator.h')
-rw-r--r--generator/cppgenerator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/generator/cppgenerator.h b/generator/cppgenerator.h
index dd02cb6ad..5769f8e46 100644
--- a/generator/cppgenerator.h
+++ b/generator/cppgenerator.h
@@ -48,9 +48,10 @@ private:
void writeMetaObjectMethod(QTextStream& s, const AbstractMetaClass* metaClass);
void writeMetaCast(QTextStream& s, const AbstractMetaClass* metaClass);
- void writeConstructorWrapper(QTextStream &s, const AbstractMetaFunctionList overloads);
+ void writeMethodWrapperPreamble(QTextStream& s, OverloadData& overloadData);
+ void writeConstructorWrapper(QTextStream& s, const AbstractMetaFunctionList overloads);
void writeDestructorWrapper(QTextStream& s, const AbstractMetaClass* metaClass);
- void writeMethodWrapper(QTextStream &s, const AbstractMetaFunctionList overloads);
+ void writeMethodWrapper(QTextStream& s, const AbstractMetaFunctionList overloads);
void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData);
void writeCppSelfDefinition(QTextStream& s, const AbstractMetaFunction* func, bool hasStaticOverload = false);
void writeCppSelfDefinition(QTextStream& s, const AbstractMetaClass* metaClass, bool hasStaticOverload = false);