diff --git a/intern/ghost/intern/GHOST_ImeWin32.hh b/intern/ghost/intern/GHOST_ImeWin32.hh index 6d4793f3fe6..e63f3de7a96 100644 --- a/intern/ghost/intern/GHOST_ImeWin32.hh +++ b/intern/ghost/intern/GHOST_ImeWin32.hh @@ -30,7 +30,10 @@ class GHOST_EventIME : public GHOST_Event { * \param type: The type of key event. * \param key: The key code of the key. */ - GHOST_EventIME(uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window, void *customdata) + GHOST_EventIME(uint64_t msec, + GHOST_TEventType type, + GHOST_IWindow *window, + const void *customdata) : GHOST_Event(msec, type, window) { this->m_data = customdata; diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index ba9e4229b84..814ee0ca1a4 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -5796,7 +5796,7 @@ class GHOST_EventIME : public GHOST_Event { GHOST_EventIME(uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window, - GHOST_TEventImeData *customdata) + const GHOST_TEventImeData *customdata) : GHOST_Event(msec, type, window) { /* Make sure that we keep a copy of the IME input. Otherwise it might get lost diff --git a/intern/ghost/intern/GHOST_SystemWin32.cc b/intern/ghost/intern/GHOST_SystemWin32.cc index 7c4602b600f..7055a406deb 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cc +++ b/intern/ghost/intern/GHOST_SystemWin32.cc @@ -1409,7 +1409,7 @@ GHOST_Event *GHOST_SystemWin32::processWindowEvent(GHOST_TEventType type, #ifdef WITH_INPUT_IME GHOST_Event *GHOST_SystemWin32::processImeEvent(GHOST_TEventType type, GHOST_WindowWin32 *window, - GHOST_TEventImeData *data) + const GHOST_TEventImeData *data) { GHOST_SystemWin32 *system = (GHOST_SystemWin32 *)getSystem(); return new GHOST_EventIME(getMessageTime(system), type, window, data); diff --git a/intern/ghost/intern/GHOST_SystemWin32.hh b/intern/ghost/intern/GHOST_SystemWin32.hh index 1845f89daaa..abb91d67de2 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.hh +++ b/intern/ghost/intern/GHOST_SystemWin32.hh @@ -426,7 +426,7 @@ class GHOST_SystemWin32 : public GHOST_System { */ static GHOST_Event *processImeEvent(GHOST_TEventType type, GHOST_WindowWin32 *window, - GHOST_TEventImeData *data); + const GHOST_TEventImeData *data); #endif /* WITH_INPUT_IME */ /** diff --git a/intern/ghost/intern/GHOST_WindowCocoa.hh b/intern/ghost/intern/GHOST_WindowCocoa.hh index 12e6151ef43..9abee529e56 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.hh +++ b/intern/ghost/intern/GHOST_WindowCocoa.hh @@ -321,7 +321,10 @@ class GHOST_EventIME : public GHOST_Event { * \param type: The type of key event. * \param key: The key code of the key. */ - GHOST_EventIME(uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window, void *customdata) + GHOST_EventIME(uint64_t msec, + GHOST_TEventType type, + GHOST_IWindow *window, + const void *customdata) : GHOST_Event(msec, type, window) { this->m_data = customdata;