diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-21 12:57:57 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-21 20:48:55 +0000 |
commit | e150045e9d1944b654b600c0d77f924ee0c5032d (patch) | |
tree | d23a902dd3ad484dc4010cc89c2f86a3e9e2c4fd /core/fpdfapi/render/cpdf_renderstatus.h | |
parent | f9f26b588e0b30fb581097e2a430f5c80f33b692 (diff) | |
download | pdfium-e150045e9d1944b654b600c0d77f924ee0c5032d.tar.xz |
Return unique_ptr from CPDF_RenderStatus::CloneObjStates().
Tidy a few nits along the way.
Change-Id: Ia330464e787dc584004896d2b09c228dc2d6bbc3
Reviewed-on: https://pdfium-review.googlesource.com/4433
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h index e9d1f87387..ab5ddd9f0d 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.h +++ b/core/fpdfapi/render/cpdf_renderstatus.h @@ -142,8 +142,9 @@ class CPDF_RenderStatus { FX_RECT* pClipRect, const CFX_Matrix* pMatrix); static CFX_RetainPtr<CPDF_Type3Cache> GetCachedType3(CPDF_Type3Font* pFont); - static CPDF_GraphicStates* CloneObjStates(const CPDF_GraphicStates* pPathObj, - bool bStroke); + static std::unique_ptr<CPDF_GraphicStates> CloneObjStates( + const CPDF_GraphicStates* pPathObj, + bool bStroke); CFX_RetainPtr<CPDF_TransferFunc> GetTransferFunc(CPDF_Object* pObject) const; FX_ARGB GetFillArgb(CPDF_PageObject* pObj, bool bType3 = false) const; FX_ARGB GetStrokeArgb(CPDF_PageObject* pObj) const; |