aboutsummaryrefslogtreecommitdiffstats
path: root/cppgenerator.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-11 17:48:17 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-13 13:55:02 -0200
commit1bfff6f2f2549dd3a4e068e5bd767f72d8c7bd8b (patch)
treef9fc2753fd512326e9cdd025bdb50327daf59248 /cppgenerator.h
parent9e7c52bbef25fb118452aacae4f8e05ca5c9cf9a (diff)
Fix object initialization.
The C++ object instanciation was made in tp_init function instead of tp_new function. Now tp_new just create a useless python object which will be filled in the tp_init function. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'cppgenerator.h')
-rw-r--r--cppgenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 92039b38d..132a075cd 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -157,6 +157,7 @@ private:
// Maps special function names to function parameters and return types
// used by CPython API in the sequence protocol.
QHash<QString, QPair<QString, QString> > m_sequenceProtocol;
+ int m_currentErrorCode;
};
#endif // CPPGENERATOR_H