aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shibokengenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 5c8342fe9..d5fa3e90b 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -820,8 +820,8 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
static QRegExp pyArgsRegex("%PYARG_(\\d+)");
// detect is we should use pyargs instead of args as variable name for python arguments
- bool usePyArgs;
- int numArgs;
+ bool usePyArgs = false;
+ int numArgs = 0;
if (func) {
// calc num of real arguments.
int argsRemoved = 0;