From e40764862208b8cb76f507c489b01e3795fd93bd Mon Sep 17 00:00:00 2001 From: Wei Li Date: Tue, 15 Mar 2016 10:58:40 -0700 Subject: Modify xfa code to avoid c4800 warnings BUG=pdfium:29 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1800793002 . --- fpdfsdk/include/fpdfxfa/fpdfxfa_util.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h') diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h index af69812471..545d910206 100644 --- a/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h +++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_util.h @@ -17,7 +17,7 @@ #define JS_STR_VIEWERVARIATION L"Full" #define JS_STR_VIEWERVERSION_XFA L"11" -class CFWL_TimerInfo; +struct CFWL_TimerInfo; class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { public: @@ -35,13 +35,12 @@ class CXFA_FWLAdapterTimerMgr : public IFWL_AdapterTimerMgr { CPDFDoc_Environment* const m_pEnv; }; -class CFWL_TimerInfo { - public: +struct CFWL_TimerInfo { CFWL_TimerInfo() : pTimer(nullptr) {} - CFWL_TimerInfo(uint32_t event, IFWL_Timer* timer) - : uIDEvent(event), pTimer(timer) {} + CFWL_TimerInfo(int32_t event, IFWL_Timer* timer) + : idEvent(event), pTimer(timer) {} - uint32_t uIDEvent; + int32_t idEvent; IFWL_Timer* pTimer; }; -- cgit v1.2.3