summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-23 19:26:28 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-23 19:26:28 -0200
commit4373e985191194ada48a81bc0db592c0312b4c3d (patch)
tree303acdf047c85a71c2673dd124065505ff913866
parent7289fd3ff34ee42bb6b43203cb0f813f38ee927d (diff)
downloadshiboken-4373e985191194ada48a81bc0db592c0312b4c3d.tar.gz
shiboken-4373e985191194ada48a81bc0db592c0312b4c3d.tar.xz
shiboken-4373e985191194ada48a81bc0db592c0312b4c3d.zip
Use "unsigned int" instead of "uint".
-rw-r--r--libshiboken/basewrapper.cpp2
-rw-r--r--libshiboken/basewrapper.h9
2 files changed, 5 insertions, 6 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index d224e1ca..1f58ae58 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -38,7 +38,7 @@ namespace Shiboken
{
PyObject*
-PyBaseWrapper_New(PyTypeObject* instanceType, PyTypeObject* baseWrapperType, const void* cptr, uint hasOwnership)
+PyBaseWrapper_New(PyTypeObject* instanceType, PyTypeObject* baseWrapperType, const void* cptr, unsigned int hasOwnership)
{
if (!cptr)
return 0;
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h
index a31e2263..67f13c11 100644
--- a/libshiboken/basewrapper.h
+++ b/libshiboken/basewrapper.h
@@ -49,8 +49,8 @@ struct PyBaseWrapper
PyObject_HEAD
PyTypeObject* baseWrapperType;
void* cptr;
- uint hasOwnership : 1;
- uint validCppObject : 1;
+ unsigned int hasOwnership : 1;
+ unsigned int validCppObject : 1;
};
} // extern "C"
@@ -116,7 +116,7 @@ typedef struct {
LIBSHIBOKEN_API PyAPI_FUNC(PyObject*)
PyBaseWrapper_New(PyTypeObject *instanceType, PyTypeObject *baseWrapperType,
- const void *cptr, uint hasOwnership = 1);
+ const void *cptr, unsigned int hasOwnership = 1);
inline bool
cppObjectIsValid(PyBaseWrapper* self)
@@ -128,8 +128,7 @@ cppObjectIsValid(PyBaseWrapper* self)
}
template <typename T>
-PyAPI_FUNC(void)
-PyBaseWrapper_Dealloc(PyObject* self)
+void PyBaseWrapper_Dealloc(PyObject* self)
{
BindingManager::instance().releaseWrapper(self);
if (PyBaseWrapper_hasOwnership(self))