diff options
author | thestig <thestig@chromium.org> | 2016-11-21 16:52:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 16:52:41 -0800 |
commit | 6a1c9bd09ef8fdd2fe2f9e39b9a05f6581be9d87 (patch) | |
tree | e909f7f4a56ac319f58865e42d0406de7c65c690 /core/fpdfapi/page/cpdf_pathobject.cpp | |
parent | 06104a8abc71ecd824d6a461b6f6f31c32fd2135 (diff) | |
download | pdfium-6a1c9bd09ef8fdd2fe2f9e39b9a05f6581be9d87.tar.xz |
Use more unique_ptrs in CPDF_Image.
Do the same in CPDF_TextObject.
Discover CPDF_PageObject::Clone() is unnecessary and remove it.
Review-Url: https://codereview.chromium.org/2517163003
Diffstat (limited to 'core/fpdfapi/page/cpdf_pathobject.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_pathobject.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/fpdfapi/page/cpdf_pathobject.cpp b/core/fpdfapi/page/cpdf_pathobject.cpp index a25f7891a6..27c4535fa5 100644 --- a/core/fpdfapi/page/cpdf_pathobject.cpp +++ b/core/fpdfapi/page/cpdf_pathobject.cpp @@ -10,17 +10,6 @@ CPDF_PathObject::CPDF_PathObject() {} CPDF_PathObject::~CPDF_PathObject() {} -CPDF_PathObject* CPDF_PathObject::Clone() const { - CPDF_PathObject* obj = new CPDF_PathObject; - obj->CopyData(this); - - obj->m_Path = m_Path; - obj->m_FillType = m_FillType; - obj->m_bStroke = m_bStroke; - obj->m_Matrix = m_Matrix; - return obj; -} - CPDF_PageObject::Type CPDF_PathObject::GetType() const { return PATH; } |