diff options
author | tsepez <tsepez@chromium.org> | 2016-08-26 16:52:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-26 16:52:33 -0700 |
commit | c10c23a2b1999b1cb0354fd4db9837dc63a3d833 (patch) | |
tree | 2f5b9f35d372de26476411295120146baa93f5fb /core/fpdfapi/fpdf_page/include | |
parent | 9ed91376d562f3c6e7ca0a99035a74502f648776 (diff) | |
download | pdfium-c10c23a2b1999b1cb0354fd4db9837dc63a3d833.tar.xz |
Add -> operators to CFX_CountRef.chromium/2842
Allows CFX_CountRefs to behave more like pointers.
Rename SetNull() to Clear() for consistency with other ptrs.
Change GetPrivateCopy() into MakePrivateCopy() with no return,
since the -> operators are clearer than getting an object pointer.
Review-Url: https://codereview.chromium.org/2283113002
Diffstat (limited to 'core/fpdfapi/fpdf_page/include')
-rw-r--r-- | core/fpdfapi/fpdf_page/include/cpdf_path.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_page/include/cpdf_path.h b/core/fpdfapi/fpdf_page/include/cpdf_path.h index 98de696004..33db4d755a 100644 --- a/core/fpdfapi/fpdf_page/include/cpdf_path.h +++ b/core/fpdfapi/fpdf_page/include/cpdf_path.h @@ -27,7 +27,8 @@ class CPDF_Path : public CFX_CountRef<CFX_PathData> { FX_BOOL IsRect() const { return GetObject()->IsRect(); } void Transform(const CFX_Matrix* pMatrix) { - GetPrivateCopy()->Transform(pMatrix); + MakePrivateCopy(); + GetObject()->Transform(pMatrix); } void Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) { GetObject()->Append(other.GetObject(), pMatrix); |