aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-18 09:18:19 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-18 09:18:19 -0300
commitbcc342a9ae9bf5126a28fe462f98c4f7e51a5d1f (patch)
tree24a833f517e5dcc5b4b0bb57d74a8145b92531f3 /cppgenerator.h
parenta1ba9ad5e6b8c9c9a9e48929faa6c7a337ed8573 (diff)
Moved the validity check for wrapped C++ objects to a CppGenerator
method, since it is used in more than one place. Also clearified the error message.
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 5589e76ce..a90e3da22 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -54,6 +54,8 @@ private:
void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData);
void writeErrorSection(QTextStream& s, OverloadData& overloadData);
+ /// Writes the check section for the validity of wrapped C++ objects.
+ void writeInvalidCppObjectCheck(QTextStream& s);
void writeTypeCheck(QTextStream& s, const OverloadData* overloadData, QString argumentName);
void writeTypeConverterImpl(QTextStream& s, const TypeEntry* type);