From 55865454c43fbc3b163cff166544ba0a060dcbc4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 27 Aug 2018 20:18:04 +0000 Subject: The final game: mark everything final. Then revert the ones that break compilation. Fix one IWYU noticed during presubmit. Change-Id: I881a8a72818e55dbc4816247e35ff5e3015194e7 Reviewed-on: https://pdfium-review.googlesource.com/41470 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fpdfdoc/cpdf_occontext.h | 2 +- core/fpdfdoc/cpdf_structelement.h | 2 +- core/fpdfdoc/cpvt_floatrect.h | 2 +- core/fpdfdoc/cpvt_fontmap.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core/fpdfdoc') diff --git a/core/fpdfdoc/cpdf_occontext.h b/core/fpdfdoc/cpdf_occontext.h index 67763610f4..16b28ba06f 100644 --- a/core/fpdfdoc/cpdf_occontext.h +++ b/core/fpdfdoc/cpdf_occontext.h @@ -17,7 +17,7 @@ class CPDF_Dictionary; class CPDF_Document; class CPDF_PageObject; -class CPDF_OCContext : public Retainable { +class CPDF_OCContext final : public Retainable { public: enum UsageType { View = 0, Design, Print, Export }; diff --git a/core/fpdfdoc/cpdf_structelement.h b/core/fpdfdoc/cpdf_structelement.h index 79e8dd92c8..355599ff87 100644 --- a/core/fpdfdoc/cpdf_structelement.h +++ b/core/fpdfdoc/cpdf_structelement.h @@ -34,7 +34,7 @@ class CPDF_StructKid { uint32_t m_ContentId; // For PageContent, StreamContent. }; -class CPDF_StructElement : public Retainable { +class CPDF_StructElement final : public Retainable { public: template friend RetainPtr pdfium::MakeRetain(Args&&... args); diff --git a/core/fpdfdoc/cpvt_floatrect.h b/core/fpdfdoc/cpvt_floatrect.h index c5eb2202bb..4dca3aaa43 100644 --- a/core/fpdfdoc/cpvt_floatrect.h +++ b/core/fpdfdoc/cpvt_floatrect.h @@ -9,7 +9,7 @@ #include "core/fxcrt/fx_coordinates.h" -class CPVT_FloatRect : public CFX_FloatRect { +class CPVT_FloatRect final : public CFX_FloatRect { public: CPVT_FloatRect() { left = top = right = bottom = 0.0f; } diff --git a/core/fpdfdoc/cpvt_fontmap.h b/core/fpdfdoc/cpvt_fontmap.h index f1a27753ac..6d8ca062c1 100644 --- a/core/fpdfdoc/cpvt_fontmap.h +++ b/core/fpdfdoc/cpvt_fontmap.h @@ -17,7 +17,7 @@ class CPDF_Document; class CPDF_Dictionary; class CPDF_Font; -class CPVT_FontMap : public IPVT_FontMap { +class CPVT_FontMap final : public IPVT_FontMap { public: CPVT_FontMap(CPDF_Document* pDoc, CPDF_Dictionary* pResDict, -- cgit v1.2.3