[Libreoffice-commits] core.git: vcl/source vcl/win
Noel Grandin
noel at peralex.com
Tue May 10 09:51:00 UTC 2016
vcl/source/window/winproc.cxx | 4 ++--
vcl/win/window/salframe.cxx | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 034e481613742e7fc6f9d14c34dd1896bc1ba671
Author: Noel Grandin <noel at peralex.com>
Date: Tue May 10 11:49:59 2016 +0200
fix Windows and OSX build
after my "Convert SAL_EVENT to scoped enum" commit
Change-Id: I1a52a1e3428c9b68d67bd521a3136f3a529392f5
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index c16818e..5e30d5b 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2609,11 +2609,11 @@ bool ImplWindowFrameProc( vcl::Window* _pWindow, SalEvent nEvent, const void* pE
break;
-#ifdef DBG_UTIL
default:
+#ifdef DBG_UTIL
SAL_WARN( "vcl.layout", "ImplWindowFrameProc(): unknown event (" << (int)nEvent << ")" );
- break;
#endif
+ break;
}
return bRet;
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 7e57d5d..47aa4dd 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -1245,7 +1245,7 @@ void WinSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight,
ShowWindow( mhWnd, SW_RESTORE );
}
- sal_uInt16 nEvent = 0;
+ SalEvent nEvent = SalEvent::NONE;
UINT nPosSize = 0;
RECT aClientRect, aWindowRect;
GetClientRect( mhWnd, &aClientRect ); // x,y always 0,0, but width and height without border
@@ -3020,7 +3020,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
}
SalMouseEvent aMouseEvt;
long nRet;
- sal_uInt16 nEvent = 0;
+ SalEvent nEvent = SalEvent::NONE;
bool bCall = TRUE;
aMouseEvt.mnX = (short)LOWORD( lParam );
@@ -3514,9 +3514,9 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
else
{
SalKeyEvent aKeyEvt;
- sal_uInt16 nEvent;
+ SalEvent nEvent;
MSG aCharMsg;
- BOOL bCharPeek = FALSE;
+ BOOL bCharPeek = FALSE;
UINT nCharMsg = WM_CHAR;
bool bKeyUp = (nMsg == WM_KEYUP) || (nMsg == WM_SYSKEYUP);
@@ -3637,7 +3637,7 @@ long ImplHandleSalObjKeyMsg( HWND hWnd, UINT nMsg,
if ( (wParam != VK_SHIFT) && (wParam != VK_CONTROL) && (wParam != VK_MENU) )
{
SalKeyEvent aKeyEvt;
- sal_uInt16 nEvent;
+ SalEvent nEvent;
bool bKeyUp = (nMsg == WM_KEYUP) || (nMsg == WM_SYSKEYUP);
// convert KeyCode
@@ -4052,7 +4052,7 @@ static long ImplHandleShutDownMsg( HWND hWnd )
static void ImplHandleSettingsChangeMsg( HWND hWnd, UINT nMsg,
WPARAM wParam, LPARAM lParam )
{
- sal_uInt16 nSalEvent = SalEvent::SettingsChanged;
+ SalEvent nSalEvent = SalEvent::SettingsChanged;
if ( nMsg == WM_DEVMODECHANGE )
nSalEvent = SalEvent::PrinterChanged;
More information about the Libreoffice-commits
mailing list