aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-01 20:55:44 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-02 15:07:59 -0300
commit94ce2814e9a3709ab7d60f3acee6576fe9476b1d (patch)
tree8debb88b44bf35d80cc4e613b5c1ff896ed2596c /PySide
parentee0ab65aafd830ec85aeb58ca5b0add58e7131f6 (diff)
Remove warning about unused variable in QTimer::singleShot code injection.
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/typesystem_core.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 5ebb27112..37c8d7ad3 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -1686,6 +1686,7 @@
<modify-function signature="singleShot(int,QObject*,const char*)">
<inject-code class="target" position="beginning">
// %FUNCTION_NAME() - disable generation of c++ function call
+ (void) %2; // remove warning about unused variable
Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
PyObject* pyTimer = Shiboken::SbkType&lt;QTimer>()->tp_new(Shiboken::SbkType&lt;QTimer>(), emptyTuple, 0);
Shiboken::SbkType&lt;QTimer>()->tp_init(pyTimer, emptyTuple, 0);