diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-17 14:40:19 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-17 15:39:59 -0300 |
commit | da5a88b3b53b4769e77eff1d48cc9a2c7152f6c2 (patch) | |
tree | b360249f0ee73d773d27ccd793150b16f8ba0621 | |
parent | 08027d04146bf528ac33a0686aa1a1a81312b9a3 (diff) |
Fixed bug on named args parser.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Anderson Lizardo <anderson.lizardo@gmail.com>
-rw-r--r-- | cppgenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index c899a4697..18117d3a2 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -1193,7 +1193,7 @@ void CppGenerator::writeNamedArgumentsCheck(QTextStream& s, OverloadData& overlo Indentation indent(INDENT); s << INDENT << "PyObject* argName = PyList_GET_ITEM(keys, i);" << endl; s << INDENT << "if (!std::binary_search(argNames, argNames + " << argNamesList.count(); - s << ", std::string(PyString_AS_STRING(argName))))" << endl; + s << ", std::string(PyString_AS_STRING(argName)))) {" << endl; { Indentation indent(INDENT); if (ownerClassIsQObject) { @@ -1204,6 +1204,7 @@ void CppGenerator::writeNamedArgumentsCheck(QTextStream& s, OverloadData& overlo s << INDENT << "return " << m_currentErrorCode << ';' << endl; } } + s << INDENT << '}' << endl; } s << INDENT << '}' << endl; } |