summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-27 11:15:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-27 14:27:21 +0100
commitf4a021a196e8f71b92d9e6b4021a99526cb5cc72 (patch)
tree475c427cc22611302573c6e1aa14b91010ef2c37 /vcl
parent092ec538045f443dce3e45ff73064eb46d0a4fc0 (diff)
WinSalFrame::mnWidth/Height should presumably be of type LONG
...as they are only ever set to LO-/HIWORD values cast to a signed integer type Change-Id: I82f9a80bab7c3b7e3ee5545725efd0d88601b8c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106755 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/win/salframe.h4
-rw-r--r--vcl/win/window/salframe.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h
index 05f907dc66b9..5068ecd987aa 100644
--- a/vcl/inc/win/salframe.h
+++ b/vcl/inc/win/salframe.h
@@ -41,8 +41,8 @@ public:
SystemEnvData maSysData; // system data
SalFrameState maState = {}; // frame state
int mnShowState; // show state
- long mnWidth; // client width in pixeln
- long mnHeight; // client height in pixeln
+ LONG mnWidth; // client width in pixeln
+ LONG mnHeight; // client height in pixeln
int mnMinWidth; // min. client width in pixeln
int mnMinHeight; // min. client height in pixeln
int mnMaxWidth; // max. client width in pixeln
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 34a569be39ab..3454ebf885c8 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -4025,8 +4025,8 @@ static void ImplHandleSizeMsg( HWND hWnd, WPARAM wParam, LPARAM lParam )
{
UpdateFrameGeometry( hWnd, pFrame );
- pFrame->mnWidth = static_cast<int>(LOWORD(lParam));
- pFrame->mnHeight = static_cast<int>(HIWORD(lParam));
+ pFrame->mnWidth = static_cast<LONG>(LOWORD(lParam));
+ pFrame->mnHeight = static_cast<LONG>(HIWORD(lParam));
// save state
ImplSaveFrameState( pFrame );
// Call Hdl