summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-08-26 10:59:04 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-26 10:59:04 -0700
commit80f9957fe156bd8e940499491ca8167fe7dad416 (patch)
treeb0c46221fdfc40450d89fd4c55e646bdbc9bc13d /core/fpdfapi/fpdf_page/include
parent2d396ac157bcd6da78190def936e5eaf278a6ca7 (diff)
downloadpdfium-80f9957fe156bd8e940499491ca8167fe7dad416.tar.xz
Rework CFX_CountRef in terms of CFX_RetainPtr.
Make use of existing ref count work rather than re-inventing it. Review-Url: https://codereview.chromium.org/2281683002
Diffstat (limited to 'core/fpdfapi/fpdf_page/include')
-rw-r--r--core/fpdfapi/fpdf_page/include/cpdf_path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_page/include/cpdf_path.h b/core/fpdfapi/fpdf_page/include/cpdf_path.h
index 0c077bb443..0e8c491f9e 100644
--- a/core/fpdfapi/fpdf_page/include/cpdf_path.h
+++ b/core/fpdfapi/fpdf_page/include/cpdf_path.h
@@ -27,8 +27,8 @@ class CPDF_Path : public CFX_CountRef<CFX_PathData> {
FX_BOOL IsRect() const { return m_pObject->IsRect(); }
void Transform(const CFX_Matrix* pMatrix) { GetModify()->Transform(pMatrix); }
- void Append(CPDF_Path src, const CFX_Matrix* pMatrix) {
- m_pObject->Append(src.m_pObject, pMatrix);
+ void Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) {
+ m_pObject->Append(other.GetObject(), pMatrix);
}
void AppendRect(FX_FLOAT left,