aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-03-28 10:08:05 +0200
committerChristian Tismer <tismer@stackless.com>2017-03-28 15:07:17 +0000
commit984a2fa47dc71f923a16a7590f5d79d61780fb57 (patch)
treefc97a38fd459531046f3396cc4b206f72ab5dbc1 /libshiboken/basewrapper.cpp
parentb8f7e2aaa40198e48fd5a619f5fa63ed2b3fbb80 (diff)
libshiboken: Take const SbkConverter/SbkObjectType * where appropriate
Change-Id: I0597f4c4f2eb0e8d4979690eeb1f17d78cf4e619 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r--libshiboken/basewrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index d82297d89..b3f99a8a5 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -1105,8 +1105,8 @@ bool isValid(PyObject* pyObj, bool throwPyError)
return isValid(reinterpret_cast<SbkObject*>(pyObj), throwPyError);
}
-SbkObject *findColocatedChild(SbkObject* wrapper,
- SbkObjectType* instanceType)
+SbkObject *findColocatedChild(SbkObject *wrapper,
+ const SbkObjectType *instanceType)
{
// Degenerate case, wrapper is the correct wrapper.
if (reinterpret_cast<const void *>(Py_TYPE(wrapper)) == reinterpret_cast<const void *>(instanceType))