diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-04 23:33:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-04 23:33:30 +0000 |
commit | 39cf6a765ae349242289ec3287eaf4d6c5fd57f8 (patch) | |
tree | ec387ee09ee40a2628a27f4215cd836749644bd3 /core/fpdfapi | |
parent | 57353fb32972af2254070bfb2f662c8add8b2efb (diff) | |
download | pdfium-39cf6a765ae349242289ec3287eaf4d6c5fd57f8.tar.xz |
Change |virtual ~Foo(){}| to |virtual ~Foo()=default;|chromium/3571
Otherwise code coverage flags the empty body as unreachable.
Change-Id: Iee1d9a876d68276529c70d9b8c7a28276f271767
Reviewed-on: https://pdfium-review.googlesource.com/c/43514
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/font/cfx_cttgsubtable.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/font/cfx_cttgsubtable.h b/core/fpdfapi/font/cfx_cttgsubtable.h index 6b23a8db27..54e16b4aed 100644 --- a/core/fpdfapi/font/cfx_cttgsubtable.h +++ b/core/fpdfapi/font/cfx_cttgsubtable.h @@ -60,7 +60,7 @@ class CFX_CTTGSUBTable { }; struct TCoverageFormatBase { - virtual ~TCoverageFormatBase() {} + virtual ~TCoverageFormatBase() = default; uint16_t CoverageFormat; }; diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h index be3f30ce5d..d61129378e 100644 --- a/core/fpdfapi/parser/cpdf_document.h +++ b/core/fpdfapi/parser/cpdf_document.h @@ -47,7 +47,7 @@ class CPDF_Document : public Observable<CPDF_Document>, // Type from which the XFA extension can subclass itself. class Extension { public: - virtual ~Extension() {} + virtual ~Extension() = default; virtual CPDF_Document* GetPDFDoc() const = 0; virtual int GetPageCount() const = 0; virtual void DeletePage(int page_index) = 0; |