From fc1d16f76f173b8437edc93dde8f9f82abb51298 Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 2 Sep 2016 15:45:22 -0700 Subject: Make CPDF_Path have a CFX_Path rather than inheriting Review-Url: https://codereview.chromium.org/2305103002 --- fpdfsdk/fxedit/fxet_edit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/fxedit') diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp index 098ef7f10b..7d207a83ca 100644 --- a/fpdfsdk/fxedit/fxet_edit.cpp +++ b/fpdfsdk/fxedit/fxet_edit.cpp @@ -137,8 +137,8 @@ void AddRectToPageObjects(CPDF_PageObjectHolder* pObjectHolder, FX_COLORREF crFill, const CFX_FloatRect& rcFill) { std::unique_ptr pPathObj(new CPDF_PathObject); - CFX_PathData* pPathData = pPathObj->m_Path.GetPrivateCopy(); - pPathData->AppendRect(rcFill.left, rcFill.bottom, rcFill.right, rcFill.top); + pPathObj->m_Path.AppendRect(rcFill.left, rcFill.bottom, rcFill.right, + rcFill.top); FX_FLOAT rgb[3]; rgb[0] = FXARGB_R(crFill) / 255.0f; -- cgit v1.2.3