Remove warning about unused variable in QTimer::singleShot code injection.
This commit is contained in:
parent
ee0ab65aaf
commit
94ce2814e9
1 changed files with 1 additions and 0 deletions
|
|
@ -1686,6 +1686,7 @@
|
||||||
<modify-function signature="singleShot(int,QObject*,const char*)">
|
<modify-function signature="singleShot(int,QObject*,const char*)">
|
||||||
<inject-code class="target" position="beginning">
|
<inject-code class="target" position="beginning">
|
||||||
// %FUNCTION_NAME() - disable generation of c++ function call
|
// %FUNCTION_NAME() - disable generation of c++ function call
|
||||||
|
(void) %2; // remove warning about unused variable
|
||||||
Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
|
Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
|
||||||
PyObject* pyTimer = Shiboken::SbkType<QTimer>()->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0);
|
PyObject* pyTimer = Shiboken::SbkType<QTimer>()->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0);
|
||||||
Shiboken::SbkType<QTimer>()->tp_init(pyTimer, emptyTuple, 0);
|
Shiboken::SbkType<QTimer>()->tp_init(pyTimer, emptyTuple, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue