summaryrefslogtreecommitdiff
path: root/embedserv/source/inc/syswinwrapper.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-01 10:40:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-02 08:02:21 +0100
commit803bff584c1c6861e33a91f5075ba68a089a8c8e (patch)
treef2f00f4b19123d558918b1ebe24e06bfce2a5c34 /embedserv/source/inc/syswinwrapper.hxx
parent2195299ab60d71a72c37690f88575f71b3d568ff (diff)
-Werror,-Wint-to-pointer-cast
Appart from the by-design type-punned use in CreateWindowEx, m_uID is (only) used in a call to MAKEWPARAM (to create a WPARAM to pass into a SendMessage call), so the most realistic type to use seems to be WORD. And CHatchWindow::Init is only called with a value of 2000 (from docholder.cxx), anyway. Change-Id: I4b6554d1ca9bb3926378c9e25a5473609f5951c5
Diffstat (limited to 'embedserv/source/inc/syswinwrapper.hxx')
-rw-r--r--embedserv/source/inc/syswinwrapper.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/embedserv/source/inc/syswinwrapper.hxx b/embedserv/source/inc/syswinwrapper.hxx
index 422dff9c3a4a..9814248e5d55 100644
--- a/embedserv/source/inc/syswinwrapper.hxx
+++ b/embedserv/source/inc/syswinwrapper.hxx
@@ -146,7 +146,7 @@ protected:
int m_dBorder;
int m_dBorderOrg;
- UINT m_uID;
+ WORD m_uID;
HWND m_hWndParent;
HWND m_hWndKid;
HWND m_hWndAssociate;
@@ -157,7 +157,7 @@ protected:
CHatchWin(HINSTANCE,const DocumentHolder*);
~CHatchWin();
- BOOL Init(HWND, UINT, HWND);
+ BOOL Init(HWND, WORD, HWND);
HWND HwndAssociateSet(HWND);
HWND HwndAssociateGet();