diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-16 17:04:24 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-20 22:25:15 +0200 |
commit | 8ba60ca42d4d1873b8cd85c5d3b5ed2f0e19df60 (patch) | |
tree | 1e7fc5b10059959b65fea23932c20c70a52552a6 /vcl/win/window | |
parent | 4f05fdffbe4483ae0a466a6460b63560c3fb45ca (diff) |
WIN message handling cleanup and refactoring
Replace a lot of duplicated case code with macros.
Some minor constifications of function parameters.
I restrained from shorten the SAL_MSG_* via preprocessor concat,
so a grep will still find the whole names.
Change-Id: If1f2477fc8817b4ae7816e807154e35004bb4da9
Reviewed-on: https://gerrit.libreoffice.org/43531
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/win/window')
-rw-r--r-- | vcl/win/window/salobj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/window/salobj.cxx b/vcl/win/window/salobj.cxx index 172f61e923d3..75e406c33f61 100644 --- a/vcl/win/window/salobj.cxx +++ b/vcl/win/window/salobj.cxx @@ -145,7 +145,7 @@ LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam ) return CallNextHookEx( pSalData->mhSalObjMsgHook, nCode, wParam, lParam ); } -bool ImplSalPreDispatchMsg( MSG* pMsg ) +bool ImplSalPreDispatchMsg( const MSG* pMsg ) { // Used for Unicode and none Unicode SalData* pSalData = GetSalData(); @@ -231,10 +231,10 @@ bool ImplSalPreDispatchMsg( MSG* pMsg ) return FALSE; } -void ImplSalPostDispatchMsg( MSG* pMsg, LRESULT /* nDispatchResult */ ) +void ImplSalPostDispatchMsg( const MSG* pMsg ) { // Used for Unicode and none Unicode - SalData* pSalData = GetSalData(); + SalData *pSalData = GetSalData(); if ( (pMsg->message == WM_KEYDOWN) || (pMsg->message == WM_KEYUP) ) { |