summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-11 15:44:52 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-11 15:44:52 -0300
commit6e4832a0c0fb772d1ccbb51b5b351d007df0c3fb (patch)
treec1a72006eff78c3d4da212da1155429ad8a3bec9 /libshiboken/bindingmanager.h
parentcb869be5e63353c6cfe781b954e852f4f120f437 (diff)
downloadshiboken-6e4832a0c0fb772d1ccbb51b5b351d007df0c3fb.tar.gz
shiboken-6e4832a0c0fb772d1ccbb51b5b351d007df0c3fb.tar.xz
shiboken-6e4832a0c0fb772d1ccbb51b5b351d007df0c3fb.zip
Use const void* instead of void*. This solve the problem when we are inside
a const virtual function and the "this" pointer is const.
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 3c05c8c2..62547d55 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -47,18 +47,19 @@ class BindingManager
public:
static BindingManager& instance();
- bool hasWrapper(void *cptr);
- void assignWrapper(PyObject* wrapper, void* cptr);
+ bool hasWrapper(const void *cptr);
+ void assignWrapper(PyObject* wrapper, const void* cptr);
void releaseWrapper(void* cptr);
inline void releaseWrapper(PyObject* wrapper);
- PyObject* retrieveWrapper(void* cptr);
- PyObject* getOverride(void* cptr, const char* methodName);
+ PyObject* retrieveWrapper(const void* cptr);
+ PyObject* getOverride(const void* cptr, const char* methodName);
private:
BindingManager() {}
BindingManager(const BindingManager&);
- std::map<void*, PyObject*> m_wrapperMapper;
+ typedef std::map<const void*, PyObject*> WrapperMap;
+ WrapperMap m_wrapperMapper;
};
} // namespace Shiboken