diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-11 05:27:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-13 18:47:12 +0400 |
commit | 6c0926e802faffb242f36c6bccd1b7b36dec8bee (patch) | |
tree | 96c029b58330502e8167c3bcc8abde44133f2732 /intern | |
parent | bf462149a6d0213521b12395e10eb91f02c02326 (diff) |
Code cleanup: use const for mouse location arg
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 2 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_C-api.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index aae90179be5..9b623077b28 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -407,7 +407,7 @@ extern GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle, */ extern GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle, GHOST_TGrabCursorMode mode, - int bounds[4], int mouse_ungrab_xy[2]); + int bounds[4], const int mouse_ungrab_xy[2]); /*************************************************************************************** * Access to mouse button and keyboard states. diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp index 8d4498ed759..eaa59f096aa 100644 --- a/intern/ghost/intern/GHOST_C-api.cpp +++ b/intern/ghost/intern/GHOST_C-api.cpp @@ -363,7 +363,7 @@ GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle, GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle, GHOST_TGrabCursorMode mode, - int bounds[4], int mouse_ungrab_xy[2]) + int bounds[4], const int mouse_ungrab_xy[2]) { GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; GHOST_Rect bounds_rect, bounds_win; |