aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-28 15:25:22 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:31 -0300
commit670cde3115f372b70768f14cf19d236f0d019f99 (patch)
tree7a1a6022ea58f92e6ea5cb8f03128c77332cfa4e /libshiboken/basewrapper.cpp
parent121373c06d6b99a6614c7577c17812dec2237895 (diff)
Register type converters by name.
This way they can be queried as the soon-to-be-deprecated TypeResolvers.
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r--libshiboken/basewrapper.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index aeca2bbfe..a35178ee5 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -1035,13 +1035,13 @@ PyObject* newObject(SbkObjectType* instanceType,
{
// Try to find the exact type of cptr.
if (!isExactType) {
- TypeResolver* tr = 0;
+ PyTypeObject* exactType = 0;
if (typeName) {
- tr = TypeResolver::get(typeName);
- if (tr)
- instanceType = reinterpret_cast<SbkObjectType*>(tr->pythonType());
+ exactType = Shiboken::Conversions::getPythonTypeObject(typeName);
+ if (exactType)
+ instanceType = reinterpret_cast<SbkObjectType*>(exactType);
}
- if (!tr)
+ if (!exactType)
instanceType = BindingManager::instance().resolveType(&cptr, instanceType);
}