Cosmetic Python changes and replace DOH types

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-04-04 20:13:14 +00:00
commit 5f6389ab31
4 changed files with 7 additions and 43 deletions

View file

@ -388,7 +388,7 @@ SWIG_init(void) {
/* All objects have a 'this' attribute */
static PyGetSetDef this_getset_def = {
(char*) "this", SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
(char *)"this", SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
};
PyObject *this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
@ -398,7 +398,7 @@ SWIG_init(void) {
(PyCFunction) SwigPyObject_own
};
static PyGetSetDef thisown_getset_def = {
const_cast<char*>("thisown"), SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
(char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
};
PyObject *thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);