diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-05 10:55:09 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-05 13:18:10 -0300 |
commit | e3ccffb6b50c3508f0c92280dd314b8393c4ff03 (patch) | |
tree | a42bb6f374bef539fc1a8e1511c31ef4a872fff8 /libshiboken/pyenum.h | |
parent | 934fa3cb1a2672120bd82bb65764dc6a355ead35 (diff) |
updated Python representation of C++ enums and flags (only QFlags at the
moment): the enum/flags numeric operators are shorter and only flags allow
new instances to be created and the libshiboken
Reviewd by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/pyenum.h')
-rw-r--r-- | libshiboken/pyenum.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libshiboken/pyenum.h b/libshiboken/pyenum.h index 379072ae2..ab32052a4 100644 --- a/libshiboken/pyenum.h +++ b/libshiboken/pyenum.h @@ -56,11 +56,11 @@ PyAPI_FUNC(PyObject*) PyEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject } // extern "C" PyObject* PyEnumObject_New(PyTypeObject *instanceType, - const char* item_name, - long item_value); + long item_value, + const char* item_name); PyObject* PyEnumObject_New(PyTypeObject *instanceType, - PyObject* item_name, - long item_value); + long item_value, + PyObject* item_name = 0); } // namespace Shiboken |