summaryrefslogtreecommitdiff
path: root/xfa/src/fwl
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-09 16:22:47 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-09 16:22:47 -0800
commite021e084717b8cc43f8a0667ad9d1a807dfe381c (patch)
tree5c105cb044fd8cb07d0c7595d4c8c044cb2b98bc /xfa/src/fwl
parent8ee79f8f2824d5b7058d49ebb10ced6b001c178e (diff)
downloadpdfium-e021e084717b8cc43f8a0667ad9d1a807dfe381c.tar.xz
Fix errors in BEGIN_FWL_MESSAGE_DEF macros
The proper way to "wide-stringify" a parameter is by L###arg, not L"## arg ##", which does no replacement. Also remove dubious CloneToEvent() method, and make the proper event in the one place it is called. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1510493005 .
Diffstat (limited to 'xfa/src/fwl')
-rw-r--r--xfa/src/fwl/src/core/fwl_widgetimp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fwl/src/core/fwl_widgetimp.cpp b/xfa/src/fwl/src/core/fwl_widgetimp.cpp
index 95e235d12a..c48bfb9ca9 100644
--- a/xfa/src/fwl/src/core/fwl_widgetimp.cpp
+++ b/xfa/src/fwl/src/core/fwl_widgetimp.cpp
@@ -832,12 +832,12 @@ void CFWL_WidgetImp::UnregisterEventTarget() {
void CFWL_WidgetImp::DispatchKeyEvent(CFWL_MsgKey* pNote) {
if (!pNote)
return;
- CFWL_MsgKey* pEvent = (CFWL_MsgKey*)pNote->CloneToEvent();
+ CFWL_EvtKey* pEvent = new CFWL_EvtKey;
pEvent->m_pSrcTarget = m_pInterface;
pEvent->m_dwCmd = pNote->m_dwCmd;
pEvent->m_dwKeyCode = pNote->m_dwKeyCode;
pEvent->m_dwFlags = pNote->m_dwFlags;
- DispatchEvent((CFWL_Event*)pEvent);
+ DispatchEvent(pEvent);
pEvent->Release();
}
void CFWL_WidgetImp::DispatchEvent(CFWL_Event* pEvent) {