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/fxge/win32/cfx_windowsdib.h | 2 +- core/fxge/win32/cpsoutput.h | 2 +- core/fxge/win32/win32_int.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'core/fxge/win32') diff --git a/core/fxge/win32/cfx_windowsdib.h b/core/fxge/win32/cfx_windowsdib.h index c64fc7dc16..4b7de7d5f9 100644 --- a/core/fxge/win32/cfx_windowsdib.h +++ b/core/fxge/win32/cfx_windowsdib.h @@ -24,7 +24,7 @@ struct WINDIB_Open_Args_ { const wchar_t* path_name; }; -class CFX_WindowsDIB : public CFX_DIBitmap { +class CFX_WindowsDIB final : public CFX_DIBitmap { public: template friend RetainPtr pdfium::MakeRetain(Args&&... args); diff --git a/core/fxge/win32/cpsoutput.h b/core/fxge/win32/cpsoutput.h index 49317a64a5..04e5ac1fa0 100644 --- a/core/fxge/win32/cpsoutput.h +++ b/core/fxge/win32/cpsoutput.h @@ -12,7 +12,7 @@ #include "core/fxcrt/fx_stream.h" #include "core/fxcrt/fx_system.h" -class CPSOutput : public IFX_WriteStream { +class CPSOutput final : public IFX_WriteStream { public: enum class OutputMode { kExtEscape, kGdiComment }; diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index 76a1d8800e..0bc68c46b9 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -188,7 +188,7 @@ class CGdiDeviceDriver : public RenderDeviceDriverIface { int m_RenderCaps; }; -class CGdiDisplayDriver : public CGdiDeviceDriver { +class CGdiDisplayDriver final : public CGdiDeviceDriver { public: explicit CGdiDisplayDriver(HDC hDC); ~CGdiDisplayDriver() override; @@ -229,7 +229,7 @@ class CGdiDisplayDriver : public CGdiDeviceDriver { int render_flags); }; -class CGdiPrinterDriver : public CGdiDeviceDriver { +class CGdiPrinterDriver final : public CGdiDeviceDriver { public: explicit CGdiPrinterDriver(HDC hDC); ~CGdiPrinterDriver() override; @@ -269,7 +269,7 @@ class CGdiPrinterDriver : public CGdiDeviceDriver { const int m_VertSize; }; -class CPSPrinterDriver : public RenderDeviceDriverIface { +class CPSPrinterDriver final : public RenderDeviceDriverIface { public: CPSPrinterDriver(HDC hDC, WindowsPrintMode mode, bool bCmykOutput); ~CPSPrinterDriver() override; @@ -334,7 +334,7 @@ class CPSPrinterDriver : public RenderDeviceDriverIface { CFX_PSRenderer m_PSRenderer; }; -class CTextOnlyPrinterDriver : public RenderDeviceDriverIface { +class CTextOnlyPrinterDriver final : public RenderDeviceDriverIface { public: explicit CTextOnlyPrinterDriver(HDC hDC); ~CTextOnlyPrinterDriver() override; -- cgit v1.2.3