diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-15 19:27:56 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-15 19:27:56 -0200 |
commit | dd1446c3913ec9e4f0f78317ed6e154dbf5390fd (patch) | |
tree | d820c02e4acf882c4a5341203a48015b29896e57 /shibokengenerator.cpp | |
parent | e80dd001e5129261e512220ff2b1b8d23b0fd64b (diff) |
Remove warning about using a uninitialized variable
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 4 |
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; |