diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-17 15:42:09 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-17 17:44:56 -0300 |
commit | 24edb80bfdcb2869861533eefe4016d2e04f65db (patch) | |
tree | e5238b1ae87a1da0d0bd7c0cac038abf0f4c63ac /shibokengenerator.cpp | |
parent | 8681b1cc239def38edbf53d4bf77e3e6f302f344 (diff) |
Adds support for named arguments in function calls.
Only C++ arguments with default values will be turned into Python
named arguments.
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index accc14109..75c25df38 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -1071,9 +1071,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, argsRemoved++; } numArgs = func->arguments().size() - argsRemoved; - - usePyArgs = getMinMaxArguments(func).second > 1 || func->isConstructor(); - + usePyArgs = getMinMaxArguments(func).second > 1; } foreach (CodeSnip snip, codeSnips) { |