From 568aff520b4ca33d851317a4ea88807b4fd2da40 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Jun 2015 14:58:28 -0700 Subject: Fix -Wnon-virtual-dtor warnings on the XFA branch. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1183483003. --- xfa/include/fwl/core/fwl_widget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xfa/include/fwl/core/fwl_widget.h') diff --git a/xfa/include/fwl/core/fwl_widget.h b/xfa/include/fwl/core/fwl_widget.h index b6377cdc9f..6c3164c5e0 100644 --- a/xfa/include/fwl/core/fwl_widget.h +++ b/xfa/include/fwl/core/fwl_widget.h @@ -15,9 +15,11 @@ class IFWL_WidgetDelegate; class IFWL_Custom; class IFWL_Proxy; class IFWL_Form; + class IFWL_DataProvider { public: + virtual ~IFWL_DataProvider() {} virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption) = 0; }; class IFWL_Widget : public IFWL_Target @@ -59,6 +61,7 @@ public: class IFWL_WidgetDelegate { public: + virtual ~IFWL_WidgetDelegate() {} virtual int32_t OnProcessMessage(CFWL_Message *pMessage) = 0; virtual FWL_ERR OnProcessEvent(CFWL_Event *pEvent) = 0; virtual FWL_ERR OnDrawWidget(CFX_Graphics *pGraphics, const CFX_Matrix *pMatrix = NULL) = 0; @@ -103,6 +106,7 @@ protected: class IFWL_Proxy { public: + virtual ~IFWL_Proxy() {} virtual FWL_ERR GetWidgetRect(CFX_RectF &rect, FX_BOOL bAutoSize = FALSE) = 0; virtual FWL_ERR Update() = 0; }; -- cgit v1.2.3