1 --- ncurses-6.5/c++/cursesp.h.orig
2 +++ ncurses-6.5/c++/cursesp.h
4 const PANEL* m_owner; // the panel itself
7 - inline UserHook *UserPointer()
8 + inline UserHook *UserPointer() const
10 UserHook* uptr = reinterpret_cast<UserHook*>(
11 const_cast<void *>(::panel_userptr (p)));
14 // Set the user pointer of the panel.
17 + void *get_user() const
19 UserHook* uptr = UserPointer();
21 --- ncurses-6.5/c++/cursesf.h.orig
22 +++ ncurses-6.5/c++/cursesf.h
27 - inline void *get_user() {
28 + inline void *get_user() const {
29 UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form));
30 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==form);
32 --- ncurses-6.5/c++/cursesm.h.orig
33 +++ ncurses-6.5/c++/cursesm.h
38 - inline void *get_user() {
39 + inline void *get_user() const {
40 UserHook* uptr = STATIC_CAST(UserHook*)(::menu_userptr (menu));
41 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==menu);