aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/action.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 11:41:24 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 11:41:24 +0000
commit9f9c513165bbcae496b79656304e60bf74557af4 (patch)
tree87b7b73c057f183c59c9970d99ec683920b04990 /lib/actions/action.cpp
parentce8c818df531da2954eeeadd181c15706549b0a5 (diff)
downloadenigma2-9f9c513165bbcae496b79656304e60bf74557af4.tar.gz
enigma2-9f9c513165bbcae496b79656304e60bf74557af4.zip
speedups
Diffstat (limited to 'lib/actions/action.cpp')
-rw-r--r--lib/actions/action.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/actions/action.cpp b/lib/actions/action.cpp
index 232237cd..54684847 100644
--- a/lib/actions/action.cpp
+++ b/lib/actions/action.cpp
@@ -130,7 +130,7 @@ struct call_entry
eWidget *m_widget;
void *m_widget_arg;
call_entry(PyObject *fnc, PyObject *arg): m_fnc(fnc), m_arg(arg), m_widget(0), m_widget_arg(0) { }
- call_entry(eWidget *widget, void *arg): m_widget(widget), m_widget_arg(arg), m_fnc(0), m_arg(0) { }
+ call_entry(eWidget *widget, void *arg): m_fnc(0), m_arg(0), m_widget(widget), m_widget_arg(arg) { }
};
void eActionMap::keyPressed(int device, int key, int flags)
@@ -182,8 +182,8 @@ void eActionMap::keyPressed(int device, int key, int flags)
(k->second.m_flags & (1<<flags)))
{
PyObject *pArgs = PyTuple_New(2);
- PyTuple_SetItem(pArgs, 0, PyString_FromString(k->first.c_str()));
- PyTuple_SetItem(pArgs, 1, PyString_FromString(k->second.m_action.c_str()));
+ PyTuple_SET_ITEM(pArgs, 0, PyString_FromString(k->first.c_str()));
+ PyTuple_SET_ITEM(pArgs, 1, PyString_FromString(k->second.m_action.c_str()));
++k;
Py_INCREF(i->second.m_fnc);
call_list.push_back(call_entry(i->second.m_fnc, pArgs));
@@ -193,8 +193,8 @@ void eActionMap::keyPressed(int device, int key, int flags)
} else
{
PyObject *pArgs = PyTuple_New(2);
- PyTuple_SetItem(pArgs, 0, PyInt_FromLong(key));
- PyTuple_SetItem(pArgs, 1, PyInt_FromLong(flags));
+ PyTuple_SET_ITEM(pArgs, 0, PyInt_FromLong(key));
+ PyTuple_SET_ITEM(pArgs, 1, PyInt_FromLong(flags));
Py_INCREF(i->second.m_fnc);
call_list.push_back(call_entry(i->second.m_fnc, pArgs));
}