Fix -Wnon-virtual-dtor compiler warnings.
authorTom Sepez <tsepez@chromium.org>
Fri, 9 Jan 2015 18:46:50 +0000 (10:46 -0800)
committerTom Sepez <tsepez@chromium.org>
Fri, 9 Jan 2015 18:46:50 +0000 (10:46 -0800)
commitb9e0190938f62bf21df078e47190a62ba33ddab2
tree474749da63ac6890c008f9535b335bebee1d7cc8
parentb07772a31f5dff723af620bc57c71daa246995c0
Fix -Wnon-virtual-dtor compiler warnings.

This is done by explicitly adding a virtual dtor to interface classes,
since the cost is small given that there are already virtual functions.

The exceptions are for classes that have a Release() or Delete() method,
in which case it is non-virtual and protected to indicate that the virtual
class is never the deletion point.

BUG=
R=brucedawson@chromium.org, thestig@chromium.org

Review URL: https://codereview.chromium.org/810883005
27 files changed:
core/include/fpdfapi/fpdf_parser.h
core/include/fpdfapi/fpdf_render.h
core/include/fpdfdoc/fpdf_ap.h
core/include/fpdfdoc/fpdf_tagged.h
core/include/fpdfdoc/fpdf_vt.h
core/include/fxcodec/fx_codec_provider.h
core/include/fxcrt/fx_arb.h
core/include/fxcrt/fx_basic.h
core/include/fxcrt/fx_stream.h
core/include/fxge/fpf.h
core/include/fxge/fx_dib.h
core/include/fxge/fx_font.h
core/include/fxge/fx_ge.h
core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
core/src/fpdfapi/fpdf_font/ttgsubtable.h
core/src/fpdfdoc/tagged_int.h
core/src/fxcodec/jbig2/JBig2_Module.h
core/src/fxcrt/fx_arabic.h
fpdfsdk/include/fsdk_annothandler.h
fpdfsdk/include/fxedit/fx_edit.h
fpdfsdk/include/javascript/IJavaScript.h
fpdfsdk/include/pdfwindow/PWL_Edit.h
fpdfsdk/include/pdfwindow/PWL_EditCtrl.h
fpdfsdk/include/pdfwindow/PWL_IconList.h
fpdfsdk/include/pdfwindow/PWL_Note.h
fpdfsdk/include/pdfwindow/PWL_Wnd.h
fpdfsdk/src/fpdf_sysfontinfo.cpp