diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-03-09 22:54:11 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-09 22:54:11 +0000 |
commit | 073b99d51c7a964e5b97278f88ed9ebe917b62d3 (patch) | |
tree | 5da4d14072d0db6419bc712201acc23f4f2cfe4d /core/fpdfdoc/cpdf_defaultappearance.h | |
parent | 0d0d3ad30ca8ec3d0bd04a92f89882409c1a14ff (diff) | |
download | pdfium-073b99d51c7a964e5b97278f88ed9ebe917b62d3.tar.xz |
Cleanup CPDF_DefaultAppearance
Minor cleanups and refactoring of the CPDF_DefaultAppearance class.
Change-Id: I7b3de021e8a6a1e9ca1d70ae413f3c433627f3fd
Reviewed-on: https://pdfium-review.googlesource.com/28390
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_defaultappearance.h')
-rw-r--r-- | core/fpdfdoc/cpdf_defaultappearance.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/fpdfdoc/cpdf_defaultappearance.h b/core/fpdfdoc/cpdf_defaultappearance.h index f27856ae4e..af13a3f8bc 100644 --- a/core/fpdfdoc/cpdf_defaultappearance.h +++ b/core/fpdfdoc/cpdf_defaultappearance.h @@ -14,18 +14,13 @@ #include "core/fxge/fx_dib.h" enum class BorderStyle { SOLID, DASH, BEVELED, INSET, UNDERLINE }; -enum class PaintOperation { STROKE, FILL }; class CPDF_DefaultAppearance { public: CPDF_DefaultAppearance() {} explicit CPDF_DefaultAppearance(const ByteString& csDA) : m_csDA(csDA) {} - - CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA) { - m_csDA = cDA.GetStr(); - } - - ByteString GetStr() const { return m_csDA; } + CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA) + : m_csDA(cDA.m_csDA) {} bool HasFont(); ByteString GetFont(float* fFontSize); |