aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-15 19:27:56 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-15 19:27:56 -0200
commitdd1446c3913ec9e4f0f78317ed6e154dbf5390fd (patch)
treed820c02e4acf882c4a5341203a48015b29896e57 /shibokengenerator.cpp
parente80dd001e5129261e512220ff2b1b8d23b0fd64b (diff)
Remove warning about using a uninitialized variable
Diffstat (limited to 'shibokengenerator.cpp')
-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;