summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-20 13:53:47 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:23 -0300
commit84f15f4239715a0cb8c3c61bb3819db5e0285483 (patch)
treeb1be90ed0cc24f24725dc363818fae876c93f622
parent77664040fab3aceab972e66a7cc1f6af6adc1528 (diff)
Fix ABI break and link error on MS Windows.sb-1.0.8
-rw-r--r--libshiboken/bindingmanager.cpp6
-rw-r--r--libshiboken/bindingmanager.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libshiboken/bindingmanager.cpp b/libshiboken/bindingmanager.cpp
index 26a3e189..4f40bac2 100644
--- a/libshiboken/bindingmanager.cpp
+++ b/libshiboken/bindingmanager.cpp
@@ -287,13 +287,13 @@ SbkObjectType* BindingManager::resolveType(void** cptr, SbkObjectType* type)
return identifiedType ? identifiedType : type;
}
-std::set<SbkObject*> BindingManager::getAllPyObjects()
+std::set<PyObject*> BindingManager::getAllPyObjects()
{
- std::set<SbkObject*> pyObjects;
+ std::set<PyObject*> pyObjects;
const WrapperMap& wrappersMap = m_d->wrapperMapper;
WrapperMap::const_iterator it = wrappersMap.begin();
for (; it != wrappersMap.end(); ++it)
- pyObjects.insert(it->second);
+ pyObjects.insert(reinterpret_cast<PyObject*>(it->second));
return pyObjects;
}
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 8f8c301c..ca4bd8fd 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -64,7 +64,7 @@ public:
*/
SbkObjectType* resolveType(void** cptr, SbkObjectType* type);
- std::set<SbkObject*> getAllPyObjects();
+ std::set<PyObject*> getAllPyObjects();
/**
* Calls the function \p visitor for each object registered on binding manager.