Cleanup: const-correctness for GHOST's IME events
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user