summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libshiboken/basewrapper.cpp8
-rw-r--r--libshiboken/basewrapper.h6
-rw-r--r--libshiboken/basewrapper_p.h6
3 files changed, 10 insertions, 10 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 4706e6db..73caaf28 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -226,7 +226,7 @@ void SbkBaseWrapper_Dealloc_PrivateDtor(PyObject* self)
PyObject_ClearWeakRefs(self);
BindingManager::instance().releaseWrapper(self);
- SbkBaseWrapper_clearReferences(reinterpret_cast<SbkBaseWrapper*>(self));
+ clearReferences(reinterpret_cast<SbkBaseWrapper*>(self));
Py_TYPE(reinterpret_cast<SbkBaseWrapper*>(self))->tp_free(self);
}
@@ -242,7 +242,7 @@ void keepReference(SbkBaseWrapper* self, const char* key, PyObject* referredObje
refCountMap[key] = referredObject;
}
-void SbkBaseWrapper_clearReferences(SbkBaseWrapper* self)
+void clearReferences(SbkBaseWrapper* self)
{
if (!self->referredObjects)
return;
@@ -299,7 +299,7 @@ static void deallocPythonTypes(PyObject* pyObj)
if (SbkBaseWrapper_hasParentInfo(sbkObj))
destroyParentInfo(sbkObj);
- SbkBaseWrapper_clearReferences(sbkObj);
+ clearReferences(sbkObj);
delete[] sbkObj->cptr;
sbkObj->cptr = 0;
@@ -321,7 +321,7 @@ void deallocWrapper(PyObject* pyObj)
if (SbkBaseWrapper_hasParentInfo(pyObj))
destroyParentInfo(sbkObj);
- SbkBaseWrapper_clearReferences(sbkObj);
+ clearReferences(sbkObj);
delete[] sbkObj->cptr;
sbkObj->cptr = 0;
diff --git a/libshiboken/basewrapper.h b/libshiboken/basewrapper.h
index e4caa527..81403635 100644
--- a/libshiboken/basewrapper.h
+++ b/libshiboken/basewrapper.h
@@ -209,12 +209,6 @@ SbkBaseWrapper_TpNew(PyTypeObject* subtype, PyObject*, PyObject*);
*/
LIBSHIBOKEN_API void keepReference(SbkBaseWrapper* self, const char* key, PyObject* referredObject);
-/**
- * Decrements the reference counters of every object referred by self.
- * \param self the wrapper instance that keeps references to other objects.
- */
-LIBSHIBOKEN_API void SbkBaseWrapper_clearReferences(SbkBaseWrapper* self);
-
/// Returns true and sets a Python RuntimeError if the Python wrapper is not marked as valid.
LIBSHIBOKEN_API bool cppObjectIsInvalid(PyObject* wrapper);
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index a1c69581..c709bb10 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -150,6 +150,12 @@ struct ParentInfo
ChildrenList children;
};
+/**
+* Decrements the reference counters of every object referred by self.
+* \param self the wrapper instance that keeps references to other objects.
+*/
+void clearReferences(SbkBaseWrapper* self);
+
}
#endif